[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-17 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749 Marek Polacek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-17 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
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:

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
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.

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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 { |^~~

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
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;

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Last reconfirmed|