[LLVMbugs] [Bug 7336] New: imprecise wording in -pedantic warning

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 9 14:41:19 PDT 2010


           Summary: imprecise wording in -pedantic warning
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mattjomeara at gmail.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

$uname -a
Linux xxxxxxxx 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
x86_64 GNU/Linux
$clang -v
clang version 2.0 (trunk 105679)
Target: x86_64-unknown-linux-gnu
Thread model: posix

file warning_inside_struct_or_union.cc:

class abc { void a(){}; };
int main(int, char **){ return 0;}


compiling with

   clang -pedantic warning_inside_struct_or_union.cc

produces the following warning:

warning_inside_struct_or_union.cc:1:23: warning: extra
      ';' inside a struct or union
class abc { void a(){}; };
1 warning generated.

I think this warning does not have precise wording: The extra ';' is
not in a 'struct or union' it is in a 'class'.

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