diff options
author | Jason Merrill <jason@redhat.com> | 2009-10-08 12:09:22 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-10-08 12:09:22 -0400 |
commit | ccb05613cfd1d37ce6473244e28c56e75d1d0e66 (patch) | |
tree | 0b5aca150e69844718e291632a5913000e0f6868 /gcc/cp/cvt.c | |
parent | 6728ee79872ffd3dbcf858dab076c96c71ec95e5 (diff) | |
download | gcc-ccb05613cfd1d37ce6473244e28c56e75d1d0e66.zip gcc-ccb05613cfd1d37ce6473244e28c56e75d1d0e66.tar.gz gcc-ccb05613cfd1d37ce6473244e28c56e75d1d0e66.tar.bz2 |
re PR c++/37177 ([c++0x] ICE on decltype(rel_ops::operator><int>);)
PR c++/37177
* pt.c (resolve_nondeduced_context): New.
* cvt.c (convert_to_void): Call it.
* semantics.c (finish_decltype_type): Likewise.
* typeck.c (decay_conversion): Here too.
* pt.c (tsubst_decl): Don't clobber input_location.
Don't register a bad specialization.
From-SVN: r152564
Diffstat (limited to 'gcc/cp/cvt.c')
-rw-r--r-- | gcc/cp/cvt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/cvt.c b/gcc/cp/cvt.c index aff002d..8c5b001 100644 --- a/gcc/cp/cvt.c +++ b/gcc/cp/cvt.c @@ -956,6 +956,7 @@ convert_to_void (tree expr, const char *implicit, tsubst_flags_t complain) default:; } + expr = resolve_nondeduced_context (expr); { tree probe = expr; |