[Bug c++/20408] Unnessasary code generated for empty structs

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Mar 10 15:57:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list