https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
Marek Polacek changed:
What|Removed |Added
Resolution|--- |FIXED
Status|ASSIGNED
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
--- Comment #5 from CVS Commits ---
The trunk branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:fae016862631da70e6482fe3173a111248f8b9bc
commit r12-6049-gfae016862631da70e6482fe3173a111248f8b9bc
Author: Marek Polacek
Date: Th
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
--- Comment #4 from Ulrich Drepper ---
(In reply to Marek Polacek from comment #3)
> Hopefully that's a bit better.
This indeed looks as good as one can hope for. Thanks.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
--- Comment #3 from Marek Polacek ---
I have a patch with which we, for the original test, emit:
$ xg++ -c 103749-2.C
103749-2.C:6:8: error: ‘bar’ was declared as template but no template header
provided
6 | struct bar {
|^~~
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
--- Comment #2 from Marek Polacek ---
Same case:
template
struct bar;
struct bar {
int baz;
};
bar var;
Maybe xref_tag could detect this.
The other way round it's a bit better:
struct bar;
template
struct bar {};
bar var;
103749-2.C:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749
Marek Polacek changed:
What|Removed |Added
Ever confirmed|0 |1
Last reconfirmed|