This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60051] [4.9 Regression] [c++11] ICE with auto and array initialization
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Feb 2014 09:52:28 +0000
- Subject: [Bug c++/60051] [4.9 Regression] [c++11] ICE with auto and array initialization
- Auto-submitted: auto-generated
- References: <bug-60051-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60051
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-02-04
CC| |jakub at gcc dot gnu.org,
| |jason at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
namespace std
{
typedef __SIZE_TYPE__ size_t;
template<class T>
struct initializer_list
{
const T *c;
size_t d;
constexpr initializer_list(const T *x, size_t y) : c(x), d(y) { }
constexpr initializer_list() noexcept : c(0), d(0) { }
};
}
auto x[2] = {};
(though of course, the original testcase is likely better for the testsuite).
Started with r203725.