Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/pr65390.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// PR c++/65390 // { dg-do compile } // { dg-options "" } template<typename T> struct shared_ptr { }; template<typename T, typename Arg> shared_ptr<T> make_shared(Arg) { return shared_ptr<T>(); } // { dg-error "variably modified type|trying to instantiate" } void f(int n){ make_shared<int[n]>(1); // { dg-error "no matching function" } }