[LLVMbugs] [Bug 11632] New: -Wmismatched-tags bogus warning that class != struct

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 20 18:48:51 PST 2011


             Bug #: 11632
           Summary: -Wmismatched-tags bogus warning that class != struct
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: kilobyte at angband.pl
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

class foo;
struct foo {int a;};

warning: class 'foo' was previously declared as a struct [-Wmismatched-tags]

Interchangeably referring to classes and structs by either name is explicitly
allowed by C++98 = C++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.

More information about the llvm-bugs mailing list