[LLVMbugs] [Bug 1892] New: Redeclaration error with compatible declarations

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jan 2 00:31:35 PST 2008


           Summary: Redeclaration error with compatible declarations
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: AST
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

void f(double (* restrict a)[5]);
void f(double a[restrict][5]);

should not give any error, but clang complains about the redefinition of f.
(This testcase is from the C99 standard.)

>From the AST dump, it looks like clang is actually losing the restrict
qualifier in the second definition of f somehow.  (The second declaration gets
dumped as "void f(double (*)[5]);", whereas the first is dumped as "void
f(double (*restrict)[5]);".)

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