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++/37896] standard_layout: array direct and copy initialization issues



------- Comment #1 from jason at gcc dot gnu dot org  2008-12-02 23:59 -------
t21 is invalid because you create a standard_layout_base from each element and
then copy the resulting temporary into the array.  With the fix I just checked
in you can remove the initializer_list constructor and write

test_type t21[4] = { {1}, {2}, {3}, {4} };

and it will work.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


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