diff options
author | Jason Merrill <jason@redhat.com> | 2022-06-03 12:35:12 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-06-03 13:44:44 -0400 |
commit | 284ae8b46f5eef74c0b660a87a7169497f559e73 (patch) | |
tree | 7360cdd27f31c55d3015b8b8591880ddc25c508b /gcc/expr.cc | |
parent | 44a5bd6d933d86ed988fc4695aa00f122cf83eb4 (diff) | |
download | gcc-284ae8b46f5eef74c0b660a87a7169497f559e73.zip gcc-284ae8b46f5eef74c0b660a87a7169497f559e73.tar.gz gcc-284ae8b46f5eef74c0b660a87a7169497f559e73.tar.bz2 |
c++: redeclared hidden friend [PR105761]
Here, when we see the second declaration of f we match it with the first
one, copy over DECL_TEMPLATE_INFO, and then try to use it when parsing the
definition, leading to confusion.
PR c++/105761
gcc/cp/ChangeLog:
* decl.cc (duplicate_decls): Don't copy DECL_TEMPLATE_INFO
from a hidden friend.
gcc/testsuite/ChangeLog:
* g++.dg/cpp1y/auto-fn64.C: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions