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

            Bug ID: 22325
           Summary: Explicitly defaulted function on first declaration
                    with incompatible exception-specification should be
                    defined as deleted
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

V-ille reports the following snippet is incorrectly rejected:

    struct Defaulted {
      Defaulted(Defaulted&&) noexcept(false) = default;
      int mem;
    };

with the following error:

    prog.cc:2:3: error: exception specification of explicitly defaulted move
constructor does not match the calculated one Defaulted(Defaulted&&)
noexcept(false) = default;

The move constructor should not be ill-formed, but deleted. This is CWG1778,
exception-specification in explicitly-defaulted functions.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to