c++: Sorry about type-dependent arg for __builtin_has_attribute [PR90915]
authorMarek Polacek <polacek@redhat.com>
Fri, 8 May 2020 01:10:42 +0000 (21:10 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 18 May 2020 22:07:18 +0000 (18:07 -0400)
commit5d2246a32c638e9caea109e5dd9f182f5cd43b2a
treea04197831e09ef6c5a636e2ff3c92ceb9c892bb3
parent7a41fcde6c67faafab8c8ee2a31140999383dcef
c++: Sorry about type-dependent arg for __builtin_has_attribute [PR90915]

Until 92104 is fixed, let's sorry rather than crash.

PR c++/90915
* parser.c (cp_parser_has_attribute_expression): Sorry on a
type-dependent argument.

* g++.dg/ext/builtin-has-attribute.C: New test.
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/builtin-has-attribute.C [new file with mode: 0644]