diff options
author | Marek Polacek <polacek@redhat.com> | 2020-05-11 18:28:19 -0400 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-05-13 16:25:39 -0400 |
commit | 661232da72d29f8f2385d5f588727beb74360144 (patch) | |
tree | f63a667eaf35b44b41cdf78ad8b451b16b083ada /gcc/c/c-parser.c | |
parent | 7040894c4441fd3f9a39b0dd2d7b640e8e85808a (diff) | |
download | gcc-661232da72d29f8f2385d5f588727beb74360144.zip gcc-661232da72d29f8f2385d5f588727beb74360144.tar.gz gcc-661232da72d29f8f2385d5f588727beb74360144.tar.bz2 |
c++: explicit(bool) malfunction with dependent expression [PR95066]
I forgot to set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P when merging two
function declarations and as a sad consequence, we never tsubsted
the dependent explicit-specifier in tsubst_function_decl, leading to
disregarding the explicit-specifier altogether, and wrongly accepting
this test.
PR c++/95066
* decl.c (duplicate_decls): Set DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P.
* g++.dg/cpp2a/explicit16.C: New test.
Diffstat (limited to 'gcc/c/c-parser.c')
0 files changed, 0 insertions, 0 deletions