This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/78488] [7 Regression] P0136R1 ICE when building call to inherited default constructor.


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]