[Bug c++/79143] [7 Regression][new inheriting constructors] inheriting constructor fails with brace initialization
Casey at Carter dot net
gcc-bugzilla@gcc.gnu.org
Tue Feb 7 16:29:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79143
Casey Carter <Casey at Carter dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Casey at Carter dot net
--- Comment #4 from Casey Carter <Casey at Carter dot net> ---
(In reply to Jonathan Wakely from comment #3)
> I think this is a bug. derived is not an aggregate, because it inherits a
> user-provided constructor, so braced-init should call the base(int, int)
> constructor, not attempt aggregate init.
This. N4618 [dcl.init.aggr]/1 says:
1 An aggregate is an array or a class with
1.1 --- no user-provided, explicit, or inherited constructors
[...]
More information about the Gcc-bugs
mailing list