diff options
author | Paolo Carlini <paolo.carlini@oracle.com> | 2013-09-18 18:11:46 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2013-09-18 18:11:46 +0000 |
commit | 3f3fd87d46ec45a4894ae9390424bf7663f771e4 (patch) | |
tree | 4cb10f8c84e2ae784ceffb7b2518c173f45b70ef /gcc/cp/class.c | |
parent | b21abceec3c77f2b847b4687947d7fcf745ffdf9 (diff) | |
download | gcc-3f3fd87d46ec45a4894ae9390424bf7663f771e4.zip gcc-3f3fd87d46ec45a4894ae9390424bf7663f771e4.tar.gz gcc-3f3fd87d46ec45a4894ae9390424bf7663f771e4.tar.bz2 |
re PR c++/58457 (ICE when placement new operator is used with using keyword and custom constructor)
/cp
2013-09-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58457
* class.c (instantiate_type): Loosen a bit the gcc_assert.
/testsuite
2013-09-18 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/58457
* g++.dg/parse/using4.C: New.
From-SVN: r202711
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r-- | gcc/cp/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index 3d34b92..9e0229f 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -7627,7 +7627,7 @@ instantiate_type (tree lhstype, tree rhs, tsubst_flags_t flags) dependent on overload resolution. */ gcc_assert (TREE_CODE (rhs) == ADDR_EXPR || TREE_CODE (rhs) == COMPONENT_REF - || really_overloaded_fn (rhs) + || is_overloaded_fn (rhs) || (flag_ms_extensions && TREE_CODE (rhs) == FUNCTION_DECL)); /* This should really only be used when attempting to distinguish |