This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20408] Unnessasary code generated for empty structs
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2005 15:56:25 -0000
- Subject: [Bug c++/20408] Unnessasary code generated for empty structs
- References: <20050310154814.20408.chris@bubblescope.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-10 15:56 -------
Note this has no effect on the generated code.
But anyways:
struct X D.1574;
struct X D.1590;
D.1574 = {};
D.1590 = 0;
That is not right 0 is an INTEREGER_CST which cannot be an aggregate, that is just wrong.
If we had more type checking we would be an ICE.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |normal
Status|UNCONFIRMED |NEW
Component|middle-end |c++
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-03-10 15:56:21
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20408