PR c++/90736 - bogus error with alignof.
authorMarek Polacek <polacek@redhat.com>
Wed, 12 Jun 2019 20:17:36 +0000 (20:17 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 12 Jun 2019 20:17:36 +0000 (20:17 +0000)
commit72b091f736addb1ca458e7766dc4547fde331d28
tree1a662ce024533e68e02e5dace123d03d37c6a861
parent95b3d0fda31a3ce11a84742374bd1ffaad57f6e2
PR c++/90736 - bogus error with alignof.

* constexpr.c (adjust_temp_type): Use cv_unqualified type.

* g++.dg/cpp0x/alignof5.C: New test.

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