[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2024-03-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added CC||f.heckenb...@fh-soft.de --- Comment

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2023-07-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|pinskia at gcc

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2023-07-31 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #8 from Andrew Pinski --- (In reply to Andrew Pinski from comment #3) > from decl.cc: > > if (type_was_error_mark_node && template_parm_flag) > /* FIXME we should be able to propagate the error_mark_node as is >

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #6 from qingzhe huang --- How about this simple fix? (see the patch above.) Instead of return "error_mark_node" by condition of "!cp_parser_simulate_error", we now report error immediately. The rational of this fix is that

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-21 Thread nickhuang99 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 --- Comment #5 from qingzhe huang --- Created attachment 52257 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52257=edit cp_parser_simulate_error logic diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index b262b765a9a..988631a4248

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Keywords||FIXME --- Comment #3 from Andrew

[Bug c++/104113] invalid template argument causes the type to become int which confuses the rest of the diagnostic

2022-01-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104113 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |NEW Summary|DR 625 forbids