diff options
author | Jason Merrill <jason@redhat.com> | 2024-08-29 13:27:13 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-08-30 15:19:50 -0400 |
commit | f93a38f3fc8b20942896d037f3833d6b383dd3d8 (patch) | |
tree | 46e4d048d052db9f9859cdc918577df60b7aa620 /gcc/expr.cc | |
parent | b222122d4e93de2238041a01b1886c7dfd9944da (diff) | |
download | gcc-f93a38f3fc8b20942896d037f3833d6b383dd3d8.zip gcc-f93a38f3fc8b20942896d037f3833d6b383dd3d8.tar.gz gcc-f93a38f3fc8b20942896d037f3833d6b383dd3d8.tar.bz2 |
c++: fix used but not defined warning for friend
Here limit_bad_template_recursion avoids instantiating foo, and then we
wrongly warn that it isn't defined, because as a non-template (but
templated) friend DECL_TEMPLATE_INSTANTIATION is false.
gcc/cp/ChangeLog:
* decl2.cc (c_parse_final_cleanups): Also check
DECL_FRIEND_PSEUDO_TEMPLATE_INSTANTIATION.
gcc/testsuite/ChangeLog:
* g++.dg/diagnostic/used-inline1.C: New test.
Diffstat (limited to 'gcc/expr.cc')
0 files changed, 0 insertions, 0 deletions