[LLVMbugs] [Bug 14044] New: typo correction on certain qualified names broken with PCH

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 8 16:05:02 PDT 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    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 at 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.



More information about the llvm-bugs mailing list