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

           Summary: [sema] missing warning on useless typedef
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [email protected]


Useless typedefs probably produce a warning as they do in gcc:
--
[EMAIL PROTECTED]:rt$ cat foo4.c
typedef struct S {
  int x;
};
[EMAIL PROTECTED]:rt$ clang -fsyntax-only foo4.c
[EMAIL PROTECTED]:rt$ gcc -fsyntax-only foo4.c
foo4.c:3: warning: useless storage class specifier in empty declaration
[EMAIL PROTECTED]:rt$


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