This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/63717] Value-initialization performs defaut-initialization when =default is outside the class declaration
- From: "morwenn29 at hotmail dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Nov 2014 00:57:57 +0000
- Subject: [Bug c++/63717] Value-initialization performs defaut-initialization when =default is outside the class declaration
- Auto-submitted: auto-generated
- References: <bug-63717-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63717
--- Comment #1 from Morwenn <morwenn29 at hotmail dot fr> ---
I forgot to remove the outside-class =default in the second example, it should
be:
struct foo
{
unsigned value;
foo() = default;
foo(unsigned value):
value(value)
{}
};
int main()
{
foo bar{};
}
Sorry for that.