This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/50261] [C++0x] ICE on brace-initialize an array member
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 28 Jan 2012 05:54:41 +0000
- Subject: [Bug c++/50261] [C++0x] ICE on brace-initialize an array member
- Auto-submitted: auto-generated
- References: <bug-50261-4@http.gcc.gnu.org/bugzilla/>
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]);
}