]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/semantics.c
re PR c++/37177 ([c++0x] ICE on decltype(rel_ops::operator><int>);)
authorJason Merrill <jason@redhat.com>
Thu, 8 Oct 2009 16:09:22 +0000 (12:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 8 Oct 2009 16:09:22 +0000 (12:09 -0400)
commitccb05613cfd1d37ce6473244e28c56e75d1d0e66
tree0b5aca150e69844718e291632a5913000e0f6868
parent6728ee79872ffd3dbcf858dab076c96c71ec95e5
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
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/cvt.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic-throw.C
gcc/testsuite/g++.dg/template/explicit-args2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/explicit-args3.C [new file with mode: 0644]
gcc/testsuite/g++.old-deja/g++.pt/crash58.C