re PR c++/83796 (Abstract classes allowed to be instantiated when initialised as...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 1 Feb 2018 15:36:04 +0000 (15:36 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 1 Feb 2018 15:36:04 +0000 (15:36 +0000)
commit73b7d28f677d9bf4a4ab5ef1f69cf8282a28e377
tree08eaaa23e6345a60a44473b0b17f23ac9ad82e5b
parent3ae129323d150621d216fbbcdeebf033ef82416f
re PR c++/83796 (Abstract classes allowed to be instantiated when initialised as default parameter to function or constructor)

/cp
2018-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/83796
* call.c (convert_like_real): If w're initializing from {} explicitly
call abstract_virtuals_error_sfinae.

/testsuite
2018-02-01  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/83796
* g++.dg/cpp0x/abstract-default1.C: New.

From-SVN: r257298
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/abstract-default1.C [new file with mode: 0644]