[LLVMbugs] [Bug 6923] New: error: definition of type 'A' conflicts with typedef of the same name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Apr 24 11:07:41 PDT 2010


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

           Summary: error: definition of type 'A' conflicts with typedef
                    of the same name
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: ich at az2000.de
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Not exactly sure if this is valid C++ or not. But GCC (all versions I have
tried) and ICC compile this fine:


struct A;

extern "C" {
    struct A;
    typedef struct A A;
}

struct A;

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