re PR c++/48647 ([C++0x] SFINAE does not handle incompatible pointer types well in...
authorJason Merrill <jason@redhat.com>
Sun, 22 May 2011 18:48:39 +0000 (14:48 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sun, 22 May 2011 18:48:39 +0000 (14:48 -0400)
commit7a1db261dec3c7da38f1576a03ec44167649c1af
tree16927b8403529184612faf5712c25bbde2c9b4cf
parenteec2794c17c802a3027874aaa49f6bb3e5ef9f22
re PR c++/48647 ([C++0x] SFINAE does not handle incompatible pointer types well in conditional operator)

PR c++/48647
* typeck.c (composite_pointer_type_r): Return error_mark_node
on error in SFINAE context.

From-SVN: r174031
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae23.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/sfinae8.C