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++/60051] [4.9 Regression] [c++11] ICE with auto and array initialization


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.


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