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:
parent
5455db23af
commit
52cdd56c65
13
gcc/testsuite/g++.dg/init/copy6.C
Normal file
13
gcc/testsuite/g++.dg/init/copy6.C
Normal 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; }
|
Loading…
x
Reference in New Issue
Block a user