re PR c++/84596 (internal compiler error: unexpected expression '(bool)c' of kind...
authorMarek Polacek <polacek@redhat.com>
Wed, 14 Mar 2018 06:14:57 +0000 (06:14 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 14 Mar 2018 06:14:57 +0000 (06:14 +0000)
commit8fef0dc6a9479bdd4f82e52f7b7e1e678a817b75
treeb14a172ec9120de87c25ad46deffdebac67a1b4e
parent024a6f45a72d4686aa535a37abe7b34d678e459d
re PR c++/84596 (internal compiler error: unexpected expression '(bool)c' of kind implicit_conv_expr (cxx_eval_constant_expression))

PR c++/84596
* semantics.c (finish_static_assert): Check
instantiation_dependent_expression_p instead of
{type,value}_dependent_expression_p.

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

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