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

           Summary: imprecise wording in -pedantic warning
           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]


$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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to