[LLVMbugs] [Bug 18661] New: -fms-extensions: extern C function with mismatching exception spec is not emitted

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 29 15:18:36 PST 2014


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

            Bug ID: 18661
           Summary: -fms-extensions: extern C function with mismatching
                    exception spec is not emitted
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
            Blocks: 13707
    Classification: Unclassified

Consider the following test program:

  extern "C" {
    void f();
    void f() throw() {
    }
  }

Compiled with -fms-extensions, we downgrade the exception spec mismatch to a
warning:

  a.cc:3:8: warning: exception specification in declaration does not match
previous declaration

However, we fail to emit the definition of f. If it's not in an extern "C"
block, we do emit it.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140129/b8fa406e/attachment.html>


More information about the llvm-bugs mailing list