aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-parser.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2018-03-21 22:08:34 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2018-03-21 22:08:34 +0000
commit0186f68450af9e0841f9e998609d351a5434a5b0 (patch)
treef60a71035f6cc6f57530183d8c5f038998863e36 /gcc/c/c-parser.c
parent7446b353b56739bbba9a3e7852ebce8ffd19779b (diff)
downloadgcc-0186f68450af9e0841f9e998609d351a5434a5b0.zip
gcc-0186f68450af9e0841f9e998609d351a5434a5b0.tar.gz
gcc-0186f68450af9e0841f9e998609d351a5434a5b0.tar.bz2
[PR c++/71965] silence multi-dim array init sorry without tf_error
We shouldn't substitute templates into short-circuited-out concepts constraints, but we do, and to add insult to injury, we issue a sorry() error when a concept that shouldn't even have been substituted attempts to perform a multi-dimensional array initialization with a new{} expression. Although fixing the requirements short-circuiting is probably too risky at this point, we can get closer to the intended effect by silencing that sorry just as we silence other errors. for gcc/cp/ChangeLog PR c++/71965 * init.c (build_vec_init): Silence error, former sorry, without tf_error. for gcc/testsuite/ChangeLog PR c++/71965 * g++.dg/concepts/pr71965.C: New. From-SVN: r258749
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions