http://llvm.org/bugs/show_bug.cgi?id=14044

             Bug #: 14044
           Summary: typo correction on certain qualified names broken with
                    PCH
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


This test fails:

// RUN: %clang_cc1 -verify -chain-include %s %s

#ifndef PASS1
#define PASS1
class S {
  void f(struct Test);
};
#else
::Tesy *p;  // expected-error{{did you mean 'Test'}}
            // expected-note@6{{declared here}}
#endif

To see the right error, swap out '-include' with '-chain-include'.

The problem is that 'struct Test' is lexically inside 'class S', but
semantically inside the TU.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to