diff options
author | Marek Polacek <polacek@redhat.com> | 2020-05-11 18:28:19 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:17 -0300 |
commit | 996dc0ea9b70b2b5803c5b35caeb975888e51e76 (patch) | |
tree | 97b7e91ae43db9de474570a2a357e5ff13a0d373 /gcc/tree-inline.c | |
parent | 4edce257577704ffba19dc2863bb93d33238359d (diff) | |
download | gcc-996dc0ea9b70b2b5803c5b35caeb975888e51e76.zip gcc-996dc0ea9b70b2b5803c5b35caeb975888e51e76.tar.gz gcc-996dc0ea9b70b2b5803c5b35caeb975888e51e76.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/tree-inline.c')
0 files changed, 0 insertions, 0 deletions