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++/50261] [C++0x] ICE on brace-initialize an array member


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-01-28
     Ever Confirmed|0                           |1

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 05:54:41 UTC ---
Confirmed, the only one that ICEs on the trunk is:
template <typename T>
struct ca {
    T elem[1];
    ca(const T (&s)[1]): elem{{s}} { } // here
    ca(const T &v): elem{{{v}}} { } // and here, or more braces.
};

int main() {
    int a[1] = {0};
    ca<int> d(a);
    ca<int> e(a[0]);
}


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