Commit b3c5e31b by Giovanni Bajo Committed by Wolfgang Bangerth

error6.C: New test.

2003-06-30  Giovanni Bajo  <giovannibajo@libero.it>

        * g++.dg/other/error6.C: New test.

From-SVN: r68723
parent 813e0591
2003-06-17 Giovanni Bajo <giovannibajo@libero.it>
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
* g++.dg/other/error6.C: New test.
2003-06-30 Giovanni Bajo <giovannibajo@libero.it>
PR c++/10750
* g++.dg/parse/constant2.C: New test.
......
// { 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.
template <int N>
struct A {};
struct B
{
static int foo(void);
};
template <class T>
A<sizeof(T::foo())> func(void);
int main()
{
func<B>(); // { dg-error "sorry, unimplemented" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment