Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/other/error6.C @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } // Make sure we emit a decent error message when trying to mangle an // expression not supported by the C++ ABI due to a defect. // Update: Better to make it supported, I think... template <int N> struct A {}; struct B { static int foo(void); }; template <class T> A<sizeof(T::foo())> func(void); int main() { func<B>(); }