https://bugs.llvm.org/show_bug.cgi?id=37862
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |richard-l...@metafoo.co.uk
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
[class.ctor]p5:
"A defaulted default constructor for class X is defined as deleted if [...] any
non-variant non-static data member of const-qualified type (or array thereof)
with no brace-or-equal-initializer does not have a user-provided default
constructor"
... as clang explains in its diagnostic (which you truncated):
W get() { return W(); } // Line 19
^
<stdin>:4:2: note: explicitly defaulted function was implicitly deleted here
wrap() = default;
^
<stdin>:8:4: note: default constructor of 'wrap<const S>' is implicitly deleted
because field 't' of const-qualified type 'const S' would not be initialized
T t;
^
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs