Commit 52cdd56c by Jason Merrill

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
parent 5455db23
// PR c++/11878
struct A
{
virtual ~A();
};
template<typename T> struct B
{
T t;
};
void foo() { throw B<A>().t; }
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