[Bug c++/95725] Confusing error diagnostic in an invalid template

2024-05-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 Jonathan Wakely changed: What|Removed |Added Severity|normal |minor

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #10 from Jonathan Wakely --- (In reply to Haoxin Tu from comment #7) > By the way, can you take a look at bug 95597 and bug 95659? I think GCC > should accept the first case and shouldn't miss the error message in the > second code.

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #9 from Jonathan Wakely --- (In reply to Haoxin Tu from comment #6) > Hi, there. > > I hold the view that the compiler should have good fault tolerance, which > means giving an input(even invalid), the compiler might emit appropriate

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-18 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 Richard Biener changed: What|Removed |Added Keywords||diagnostic --- Comment #8 from Richard

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #7 from Haoxin Tu --- By the way, can you take a look at bug 95597 and bug 95659? I think GCC should accept the first case and shouldn't miss the error message in the second code. Those cases are different from this report.

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #6 from Haoxin Tu --- Hi, there. I hold the view that the compiler should have good fault tolerance, which means giving an input(even invalid), the compiler might emit appropriate error message diagnostics so that we can fix them int

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #5 from Jonathan Wakely --- Garbage in, garbage out.

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #3

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread haoxintu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 --- Comment #2 from Haoxin Tu --- (In reply to Martin Liška from comment #1) > For the next time, can you please add 'ice-on-invalid-code' keyword? Ok, so sorry it's my fault. But this is a diagnostic issue I think? I will add "diagnostic" keywo

[Bug c++/95725] Confusing error diagnostic in an invalid template

2020-06-17 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95725 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment #1