[LLVMbugs] [Bug 22325] New: Explicitly defaulted function on first declaration with incompatible exception-specification should be defined as deleted
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Sat Jan 24 17:41:22 PST 2015
    
    
  
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: unassignedclangbugs at nondot.org
          Reporter: kaballo86 at hotmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150125/469e5a14/attachment.html>
    
    
More information about the llvm-bugs
mailing list