[Bug c++/114248] invalid "scalar object" error

2024-03-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114248

Andrew Pinski  changed:

   What|Removed |Added

 Resolution|--- |DUPLICATE
 Status|UNCONFIRMED |RESOLVED

--- Comment #2 from Andrew Pinski  ---
Dup

*** This bug has been marked as a duplicate of bug 104113 ***

[Bug c++/114248] invalid "scalar object" error

2024-03-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114248

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||diagnostic

--- Comment #1 from Andrew Pinski  ---
There are a few other diagnostic bugs like this one. Basically the front end is
setting the type of the bad decl to int after an error instead of treating as a
bad object.

Iirc this is done before the gcc/front end had a notion of an error mark node.