[Bug c++/60051] [4.9 Regression] [c++11] ICE with auto and array initialization
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 4 09:52:00 GMT 2014
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.
More information about the Gcc-bugs
mailing list