[Bug c++/63717] Value-initialization performs defaut-initialization when =default is outside the class declaration
morwenn29 at hotmail dot fr
gcc-bugzilla@gcc.gnu.org
Mon Nov 3 00:58:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list