[LLVMbugs] [Bug 3301] New: x(x){} confuses clang.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Jan 8 09:50:07 PST 2009


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

           Summary: x(x){} confuses clang.
           Product: clang
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: AST
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: bolzoni at cs.unipr.it
                CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it


Small test case:
$ cat x.c 
x(x){ return x; }

$ clang x.c
f.c:1:1: error: redefinition of 'x' as different kind of symbol
x(x){ return x; }
^
f.c:1:3: note: previous definition is here
x(x){ return x; }
  ^
2 diagnostics generated.
$


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