re PR c++/11878 (ICE in cp_expr_size)

PR c++/11878
        * tree.c (build_target_expr_with_type): Call force_rvalue for
        classes with non-trivial copy ctors.

From-SVN: r72496
This commit is contained in:
Jason Merrill 2003-10-14 16:47:07 -04:00
parent 5455db23af
commit 52cdd56c65

View File

@ -0,0 +1,13 @@
// PR c++/11878
struct A
{
virtual ~A();
};
template<typename T> struct B
{
T t;
};
void foo() { throw B<A>().t; }