public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43453]  New: Initialization of char array with string literal fails in mem-initializer
@ 2010-03-20  3:06 schaub-johannes at web dot de
  2010-08-27 18:06 ` [Bug c++/43453] " giecrilj at stegny dot 2a dot pl
  2010-08-28 14:40 ` schaub-johannes at web dot de
  0 siblings, 2 replies; 9+ messages in thread
From: schaub-johannes at web dot de @ 2010-03-20  3:06 UTC (permalink / raw)
  To: gcc-bugs

Fails to compile, but should work:

struct A { 
  char x[4]; 
  A():x("bug") { } 
};

Error i get is:

"main.cpp:3: error: array used as initializer"


-- 
           Summary: Initialization of char array with string literal fails
                    in mem-initializer
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schaub-johannes at web dot de
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-05 20:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-43453-4@http.gcc.gnu.org/bugzilla/>
2010-10-30  9:41 ` [Bug c++/43453] Initialization of char array with string literal fails in mem-initializer schaub-johannes at web dot de
2011-05-14 17:28 ` schaub.johannes at googlemail dot com
2012-01-28  5:55 ` pinskia at gcc dot gnu.org
2014-05-26 10:37 ` paolo.carlini at oracle dot com
2014-06-04 22:31 ` paolo at gcc dot gnu.org
2014-06-04 22:32 ` paolo.carlini at oracle dot com
2014-06-05 20:56 ` jason at gcc dot gnu.org
2010-03-20  3:06 [Bug c++/43453] New: " schaub-johannes at web dot de
2010-08-27 18:06 ` [Bug c++/43453] " giecrilj at stegny dot 2a dot pl
2010-08-28 14:40 ` schaub-johannes at web dot de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).