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++/82514] [8 Regression] ICE: in operator[], at vec.h:749


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82514

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Smaller testcase from PR83727:

namespace a {
template <typename b, int c> b *begin(b (&)[c]);
}
class d {
public:
  d(const char *);
};
struct e {
  int f;
  d docstring;
  void (*func)(int &, int);
};
namespace a {
template <typename h, typename g> h i(h, h, g) { return 0; }
}
using a::begin;
template <typename j, typename k>
auto i(j &&container, k l) -> decltype(begin(container)) {
  return a::i(container, container, l);
}
enum { m };
template <int> void n(int &, int) {
  [] {
    struct p {
    } o[]{{}};
    i(o, p{});
  };
}
e cmds{'i', "", n<m>};

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