[LLVMbugs] [Bug 14766] New: accepts invalid?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 31 14:35:09 PST 2012


             Bug #: 14766
           Summary: accepts invalid?
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

both gcc and clang accept
extern "C" {
  void f() {
    extern void g(int);
/*extern "C" */ int g(int);
int h() {
  return g(42);

which I think is invalid. Clang rejects it if the second extern "C" is
uncommented. Gcc still accepts it.

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