https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43561
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC might be correct here. This is what clang gives
<source>:3:30: error: recursive evaluation of default argument
static bool set(T x, bool b = true) { return b; }
^
<source>:7:22: note: in instantiation of template class 'O::B<int>' requested
here
struct D: public B<int> {};
^
<source>:4:42: note: default argument used here
static const bool sized = sizeof(set(T())) == 0; // line 5
^
<source>:13:7: error: no member named 'set' in 'O::D'
d.set(1);
~ ^