[Bug c++/53494] [4.7/4.8 Regression] ICE with invalid initializer list

paolo.carlini at oracle dot com gcc-bugzilla@gcc.gnu.org
Fri Jun 8 09:27:00 GMT 2012


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

--- Comment #22 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-06-08 09:27:34 UTC ---
A tad simpler:

template<typename T, typename U>
struct pair
{
  T first;
  U second;

  pair(const T&, const U&);
};

template<typename T>
struct array
{
  typedef T value_type;
  value_type data[1];
};

array<pair<int, int> const> matchSynonyms{ { 1, 1 } };



More information about the Gcc-bugs mailing list