PR c++/90124 - bogus error with incomplete type in decltype.
authorMarek Polacek <polacek@redhat.com>
Wed, 17 Apr 2019 18:26:42 +0000 (18:26 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 17 Apr 2019 18:26:42 +0000 (18:26 +0000)
commitf64e89775fc23fc57b1631f0c0e80a96150e3cd8
tree2b0cb0b5fc80e7d3a9b847193b25afe48b3d8679
parent62a64d0af19020933e975c9b942f5b4f0b7d3ca5
PR c++/90124 - bogus error with incomplete type in decltype.

* typeck.c (build_class_member_access_expr): Check
cp_unevaluated_operand.

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

From-SVN: r270418
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/decltype70.C [new file with mode: 0644]