[Bug c++/98031] missing the error message of undeclared label

2020-11-28 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98031 --- Comment #3 from Jakub Jelinek --- The compiler just can't try to instantiate random templates it would think the user may wanted to instantiate but didn't.

[Bug c++/98031] missing the error message of undeclared label

2020-11-28 Thread tangyixuan at mail dot dlut.edu.cn via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98031 --- Comment #2 from tangyixuan --- (In reply to Jakub Jelinek from comment #1) > This is again diagnostics on uninstantiated template, invalid, no > diagnostics required. > Instantiate the template and it will be diagnosed. Yeah, I agree with yo

[Bug c++/98031] missing the error message of undeclared label

2020-11-27 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98031 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1