aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2021-04-22 17:32:01 -0400
committerMarek Polacek <polacek@redhat.com>2021-05-03 12:39:43 -0400
commitc9b6890d0b6aa030b307fdb620f8c53ed59ca3b5 (patch)
tree92f1c916e30e79d3b0fce9a5d9b2fcf246578f26 /gcc/builtins.c
parent6252e35cf5cea9a30a57ceffbc7a9f3160900a45 (diff)
downloadgcc-c9b6890d0b6aa030b307fdb620f8c53ed59ca3b5.zip
gcc-c9b6890d0b6aa030b307fdb620f8c53ed59ca3b5.tar.gz
gcc-c9b6890d0b6aa030b307fdb620f8c53ed59ca3b5.tar.bz2
c++: Fix ICE with invalid requires-expression [PR100055]
This fixes a crash on invalid requires-expression: in this test, current_template_parms is null so accessing TEMPLATE_PARMS_CONSTRAINTS is going to fail. So don't crash, but make sure we've complained already. gcc/cp/ChangeLog: PR c++/100055 * decl.c (grokfndecl): Check current_template_parms. gcc/testsuite/ChangeLog: PR c++/100055 * g++.dg/concepts/diagnostic18.C: New test.
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions