Skip to content

dejagnu test fails to compile with clang g++.old-deja/g++.other/externC3.C #11140

@llvmbot

Description

@llvmbot
Bugzilla Link 10768
Resolution DUPLICATE
Resolved on Aug 26, 2011 15:31
Version 2.9
OS Linux
Attachments exteraC3.C
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic

Extended Description

/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@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"duplicateResolved as duplicate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions