This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/20175] [3.4/4.0 Regression] Warnings are issued when initializing struct members with "strings"


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-23 18:27 -------
Confirmed, this was introduced  (most likely when the patch to fix for PR 19755 was committed).
Reduced testcase:
struct c { char s[8]; int i;};

struct c a = {"hello", 1};

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-23 18:27:26
               date|                            |
            Summary|Warnings are issued when    |[3.4/4.0 Regression]
                   |initializing struct members |Warnings are issued when
                   |with "strings"              |initializing struct members
                   |                            |with "strings"
   Target Milestone|---                         |3.4.4


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20175


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]