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

           Summary: invalid start location for anonymous namespace
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Created an attachment (id=5388)
 --> (http://llvm.org/bugs/attachment.cgi?id=5388)
'HandleTranslationUnit' of an ASTConsumer that shows the bug

The start SourceLocation of any anonymous namespace declaration is an invalid
one.

example:
cat ../anon.cpp 
namespace {}


Given that the ASTConsumer from the attachment produces:

Typedef
start:<built-in>:102:15    range:<built-in>:102:15 - <built-in>:102:15
Namespace
start:<invalid loc>    range:<invalid loc> - ../anon.cpp:1:12
UsingDirective
start:../anon.cpp:1:11    range:../anon.cpp:1:11 - ../anon.cpp:1:11

-- 
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