[LLVMbugs] [Bug 2332] New: clang incorrectly rejects "a(a)int a; {a=10; return a; }"

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu May 15 19:19:53 PDT 2008


           Summary: clang incorrectly rejects "a(a)int a;{a=10;return a;}"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: parser
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu

Per summary, clang rejects the following code:
a(a)int a;{a=10;return a;}

both gcc and comeau accept this construct.  I haven't looked closely at the
standard, but I would be surprised if this weren't valid.

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