re PR c++/51612 ([c++0x] [4.6/4.7 Regression] ICE with constexpr constructor and...
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 20 Dec 2011 10:38:44 +0000 (10:38 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 20 Dec 2011 10:38:44 +0000 (10:38 +0000)
commitf0bc5f840f8866ac73e1c5cc257f6695165c4405
tree01f04a02b58238e496fa171fa68d02bacf303bf6
parent336e404f9f34492e5304ba3de2d618d0cc90c8fa
re PR c++/51612 ([c++0x] [4.6/4.7 Regression] ICE with constexpr constructor and virtual base class)

/cp
2011-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51612
* semantics.c (is_valid_constexpr_fn): In case of constexpr
constructors also check for virtual base classes.

/testsuite
2011-12-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/51612
* g++.dg/cpp0x/constexpr-ice4.C: New.

From-SVN: r182526
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-ice4.C [new file with mode: 0644]