Commit 63823931 by Giovanni Bajo

re PR c++/13683 (bogus warning about passing non-PODs through ellipsis)

	PR c++/13683
	* g++.dg/template/sizeof6.C: New test.

From-SVN: r76964
parent 5840af0f
2004-01-30 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/13683
* g++.dg/template/sizeof6.C: New test.
2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr> 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/fwritable-strings-1.c: New test. * gcc.dg/fwritable-strings-1.c: New test.
......
// { dg-do compile }
// Contributed by Giovanni Bajo <giovannibajo at gcc dot gnu dot org>
// PR c++/13683: bogus warning about passing non-PODs through ellipsis
struct B {};
struct NonPOD : B {};
struct A
{
static int check(...);
static NonPOD GetNonPOD(void);
enum { value = sizeof(A::check(A::GetNonPOD())) };
};
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