This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78488] [7 Regression] P0136R1 ICE when building call to inherited default constructor.
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 13 Jan 2017 11:29:35 +0000
- Subject: [Bug c++/78488] [7 Regression] P0136R1 ICE when building call to inherited default constructor.
- Auto-submitted: auto-generated
- References: <bug-78488-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78488
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Priority|P3 |P1
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 6 rejects this (clang does so as well)
> g++-6 t.ii -S -std=c++1z -B /abuild/rguenther/gcc6-g/gcc
t.ii: In function ‘int main()’:
t.ii:9:9: error: no matching function for call to ‘Bar::Bar()’
Bar f;
^
t.ii:5:5: note: candidate: Bar::Bar(void*)
Bar(void*); // Define another constructor so Foo() isn't generated.
^~~
t.ii:5:5: note: candidate expects 1 argument, 0 provided
t.ii:3:8: note: candidate: constexpr Bar::Bar(const Bar&)
struct Bar : Foo {
^~~
t.ii:3:8: note: candidate expects 1 argument, 0 provided
t.ii:3:8: note: candidate: constexpr Bar::Bar(Bar&&)
t.ii:3:8: note: candidate expects 1 argument, 0 provided