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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Wouter van Ooijen from comment #0)
> This code emits an excessive amount of error messages, which seem to repeat.

It looks like it, but actually it's about a different template each time, each
of _no_inline_box_init, _no_inline_box_write, _no_inline_box_read and
_no_inline_box_direction.

Clang notices the missing ')' and doesn't treat all the following class
templates as part of the mem-initializer-list:

95301.cc:1:24: error: unknown type name 'int_fast64_t'
template< typename T = int_fast64_t, T zero = 0 >
                       ^
95301.cc:12:1: error: expected ')'
};
^
95301.cc:10:12: note: to match this '('
      start( limit::zero, limit( limit )  // wovo missing ) after zero
           ^
95301.cc:15:8: error: explicit specialization of undeclared template struct
'box_root'
struct box_root< bool > : _box_root< bool > {};
       ^       ~~~~~~~~
95301.cc:15:27: error: no template named '_box_root'
struct box_root< bool > : _box_root< bool > {};
                          ^
4 errors generated.

Reply via email to