[LLVMbugs] [Bug 10768] New: dejagnu test fails to compile with clang g++.old-deja/g++.other/externC3.C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 22:02:04 PDT 2011


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

           Summary: dejagnu test fails to compile with clang
                    g++.old-deja/g++.other/externC3.C
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7147)
 --> (http://llvm.org/bugs/attachment.cgi?id=7147)
exteraC3.C

/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C

compiles fine with g++ and intel edg based compiler


rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:15:3:
error: 
      call to 'f' is ambiguous
  f ();
  ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:6:18:
note: 
      candidate function
  extern "C" int f ();
                 ^
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.old-deja/g++.other/externC3.C:9:16:
note: 
      candidate function
extern "C" int f () { return 0; }
               ^
1 error 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