The control expression for a _Generic selection expression should have
its type decayed and qualifiers stripped when determining which
selection it matches. e.g., the following should compile:

  _Generic("test", char *: 1);
  const int i = 12;
  _Generic(i, int: 1);

This patch fixes PR16340.

~Aaron

Attachment: generic.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to