aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-decl.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2019-04-17 23:32:24 -0400
committerJason Merrill <jason@gcc.gnu.org>2019-04-17 23:32:24 -0400
commit5a58e967b526eba3d9b850cd7bc76dcc580bf708 (patch)
tree844ecad256d70dffae00df101a967a92775604d0 /gcc/c/c-decl.c
parent19caab83ca8b30a1a37ec968aaea8086b096d113 (diff)
downloadgcc-5a58e967b526eba3d9b850cd7bc76dcc580bf708.zip
gcc-5a58e967b526eba3d9b850cd7bc76dcc580bf708.tar.gz
gcc-5a58e967b526eba3d9b850cd7bc76dcc580bf708.tar.bz2
PR c++/90047 - ICE with enable_if alias template.
In order to make alias templates useful for SFINAE we instantiate them under the prevailing 'complain' argument, so an error encountered while instantiating during SFINAE context is silent. The problem in this PR comes when we later look up the erroneous instantiation and don't give an error at that point. Fixed by not adding an erroneous instantiation to the hash table, so we instantiate it again when needed and get the error. This required changes to a number of tests, which previously said "substitution failed:" with no explanation of what the failure was; now we properly explain. * pt.c (tsubst_decl) [TYPE_DECL]: Don't put an erroneous decl in the hash table when we're in SFINAE context. From-SVN: r270433
Diffstat (limited to 'gcc/c/c-decl.c')
0 files changed, 0 insertions, 0 deletions