gcc/libstdc++-v3/testsuite/20_util/from_chars
Jason Merrill 5a58e967b5 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
2019-04-17 23:32:24 -04:00
..
1.cc Update copyright years. 2019-01-01 13:31:55 +01:00
1_c++20_neg.cc PR c++/90047 - ICE with enable_if alias template. 2019-04-17 23:32:24 -04:00
1_neg.cc PR c++/90047 - ICE with enable_if alias template. 2019-04-17 23:32:24 -04:00
2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
requirements.cc Update copyright years. 2019-01-01 13:31:55 +01:00