[LLVMbugs] [Bug 1954] New: spurious "declaration does not declare anything" warnings

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jan 29 05:19:01 PST 2008


           Summary: spurious "declaration does not declare anything"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nunoplopes at sapo.pt
                CC: llvmbugs at cs.uiuc.edu

The following code produces a "declaration does not declare anything" warning.

Stripped test case from /usr/include/bits/pthreadtypes.h (linux+glibc+NPTL)

typedef union
  struct __pthread_mutex_s
    union {
        int a;
        double b;
  } __data;
  char c;
} pthread_mutex_t;

the error is generated in ParseDecl.cpp (diag::w_no_declarators)

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