[Bug c++/71007] Divergence between treatment of char[0] between OR (=> SFINAE failure) and diagnostic printing (no failure)

schaub.johannes at googlemail dot com gcc-bugzilla@gcc.gnu.org
Sun May 8 11:43:00 GMT 2016


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

--- Comment #1 from Johannes Schaub <schaub.johannes at googlemail dot com> ---
Sorry, forgot to actually add the code of the reduced testcase:

   template<int N, typename T = char[N-1]>
   void f(char(&)[N])
   { }

   int main() {
      char x[1];
      f(x);
   }


More information about the Gcc-bugs mailing list