re PR c++/50324 ([C++0x] SFINAE does not handle the object creation of an incomplete...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 8 Sep 2011 14:58:21 +0000 (14:58 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 8 Sep 2011 14:58:21 +0000 (14:58 +0000)
commit2d49bd6e23afa3364308ecd94b510e8c7567a8b2
treec58efadfba765e278a672c64afb9bd58b44ade33
parent3797cb21ffb893336be1c6b0d4e3bfd8b35fe884
re PR c++/50324 ([C++0x] SFINAE does not handle the object creation of an incomplete type)

/cp
2011-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50324
* typeck2.c (digest_init_r): Call complete_type_or_maybe_complain
instead of complete_type_or_else.

/testsuite
2011-09-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/50324
* g++.dg/cpp0x/sfinae28.C: New.

From-SVN: r178694
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/sfinae28.C [new file with mode: 0644]