PR c++/92594 - ICE with inherited trivial default ctor.
authorJason Merrill <jason@redhat.com>
Tue, 14 Jan 2020 06:00:48 +0000 (01:00 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 14 Jan 2020 16:57:34 +0000 (11:57 -0500)
commit8982b5535c2762f566fd15e5862acf4702a78690
treebdf5240ab2329c992d6e6874ce0dd91feee6edf5
parent80de0002429c74626198cefa168c3081c9d90566
PR c++/92594 - ICE with inherited trivial default ctor.

Here we were getting confused about whether or not pod_tuple has a trivial
default constructor.  bar inherits the trivial e default constructor; the
effect of calling that inherited constructor is equivalent to calling a
defaulted default constructor in bar, so let's treat it as such.

* method.c (trivial_fn_p): Treat an inherited default constructor
like a normal default constructor.
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/g++.dg/cpp0x/inh-ctor34.C [new file with mode: 0644]