re PR c++/10858 (failure with calling a method inside sizeof: sorry, unimplemented: `method_call_expr' not supported by dump_expr)
2004-02-02 Andrew Pinski <pinskia@physics.uc.edu> PR c++/10858 * g++.dg/template/sizeof7.C: New test. From-SVN: r77164
This commit is contained in:
parent
a7a2225a2b
commit
9d977b5bb3
@ -1,5 +1,10 @@
|
||||
2004-02-02 Eric Christopher <echristo@redhat.com>
|
||||
Zack Weinberg <zack@codesourcery.com>
|
||||
2004-02-02 Andrew Pinski <pinskia@physics.uc.edu>
|
||||
|
||||
PR c++/10858
|
||||
* g++.dg/template/sizeof7.C: New test.
|
||||
|
||||
2004-02-02 Eric Christopher <echristo@redhat.com>
|
||||
Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* gcc.c-torture/execute/wchar_t-1.c: Add -finput-charset.
|
||||
|
||||
|
14
gcc/testsuite/g++.dg/template/sizeof7.C
Normal file
14
gcc/testsuite/g++.dg/template/sizeof7.C
Normal file
@ -0,0 +1,14 @@
|
||||
// { dg-do compile }
|
||||
// Testcase by: bangerth@dealii.org
|
||||
// PR c++/10858: failure with calling a method inside sizeof in a template
|
||||
|
||||
template <int> struct P {};
|
||||
|
||||
void bar ();
|
||||
|
||||
template <class T> struct X {
|
||||
static int foo(void (*)());
|
||||
P<sizeof(foo(&bar))> p;
|
||||
};
|
||||
|
||||
template class X<int>;
|
Loading…
x
Reference in New Issue
Block a user