re PR c++/48969 (ICE with -std=c++0x)
authorJason Merrill <jason@redhat.com>
Tue, 7 Jun 2011 21:54:07 +0000 (17:54 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 7 Jun 2011 21:54:07 +0000 (17:54 -0400)
commit3ff609751050030ea83a7ff58eca5c07a3adcdfc
tree98e87e498bdd1f36569c008ebee5e40e0895652a
parent783c26ae6798141f9822f52b45b24abf685c0afc
re PR c++/48969 (ICE with -std=c++0x)

PR c++/48969
PR c++/44175
gcc/c-family/
* c-common.c (max_tinst_depth): Lower default to 900.
gcc/cp/
* error.c (subst_to_string): New.
(cp_printer): Use it for 'S'.
(print_instantiation_partial_context_line): Handle subst context.
* pt.c (push_tinst_level): Handle subst context.
(deduction_tsubst_fntype): Don't track specific substitutions.
Use push_tinst_level.

From-SVN: r174772
151 files changed:
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/error.c
gcc/cp/pt.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/abi/mangle11.C
gcc/testsuite/g++.dg/abi/mangle12.C
gcc/testsuite/g++.dg/abi/mangle17.C
gcc/testsuite/g++.dg/abi/mangle20-2.C
gcc/testsuite/g++.dg/abi/pragma-pack1.C
gcc/testsuite/g++.dg/cpp0x/decltype26.C
gcc/testsuite/g++.dg/cpp0x/decltype28.C
gcc/testsuite/g++.dg/cpp0x/decltype29.C
gcc/testsuite/g++.dg/cpp0x/enum11.C
gcc/testsuite/g++.dg/cpp0x/forw_enum8.C
gcc/testsuite/g++.dg/cpp0x/lambda/lambda-errloc2.C
gcc/testsuite/g++.dg/cpp0x/pr47416.C
gcc/testsuite/g++.dg/ext/case-range2.C
gcc/testsuite/g++.dg/ext/case-range3.C
gcc/testsuite/g++.dg/gomp/for-19.C
gcc/testsuite/g++.dg/gomp/pr37533.C
gcc/testsuite/g++.dg/gomp/pr38639.C
gcc/testsuite/g++.dg/gomp/tpl-parallel-2.C
gcc/testsuite/g++.dg/inherit/base3.C
gcc/testsuite/g++.dg/inherit/using6.C
gcc/testsuite/g++.dg/init/placement4.C
gcc/testsuite/g++.dg/init/reference3.C
gcc/testsuite/g++.dg/lookup/scoped6.C
gcc/testsuite/g++.dg/lookup/using7.C
gcc/testsuite/g++.dg/other/abstract1.C
gcc/testsuite/g++.dg/other/error10.C
gcc/testsuite/g++.dg/other/error5.C
gcc/testsuite/g++.dg/other/field1.C
gcc/testsuite/g++.dg/other/offsetof5.C
gcc/testsuite/g++.dg/parse/bitfield2.C
gcc/testsuite/g++.dg/parse/constant4.C
gcc/testsuite/g++.dg/parse/crash20.C
gcc/testsuite/g++.dg/parse/invalid-op1.C
gcc/testsuite/g++.dg/parse/non-dependent2.C
gcc/testsuite/g++.dg/parse/template18.C
gcc/testsuite/g++.dg/tc1/dr152.C
gcc/testsuite/g++.dg/tc1/dr166.C
gcc/testsuite/g++.dg/tc1/dr176.C
gcc/testsuite/g++.dg/tc1/dr213.C
gcc/testsuite/g++.dg/template/access11.C
gcc/testsuite/g++.dg/template/access2.C
gcc/testsuite/g++.dg/template/access3.C
gcc/testsuite/g++.dg/template/access7.C
gcc/testsuite/g++.dg/template/arg7.C
gcc/testsuite/g++.dg/template/cond2.C
gcc/testsuite/g++.dg/template/crash13.C
gcc/testsuite/g++.dg/template/crash40.C
gcc/testsuite/g++.dg/template/crash7.C
gcc/testsuite/g++.dg/template/crash84.C
gcc/testsuite/g++.dg/template/ctor5.C
gcc/testsuite/g++.dg/template/defarg13.C
gcc/testsuite/g++.dg/template/defarg14.C
gcc/testsuite/g++.dg/template/dtor7.C
gcc/testsuite/g++.dg/template/eh2.C
gcc/testsuite/g++.dg/template/error2.C
gcc/testsuite/g++.dg/template/error43.C
gcc/testsuite/g++.dg/template/friend32.C
gcc/testsuite/g++.dg/template/injected1.C
gcc/testsuite/g++.dg/template/instantiate1.C
gcc/testsuite/g++.dg/template/instantiate3.C
gcc/testsuite/g++.dg/template/instantiate5.C
gcc/testsuite/g++.dg/template/instantiate7.C
gcc/testsuite/g++.dg/template/local6.C
gcc/testsuite/g++.dg/template/lookup2.C
gcc/testsuite/g++.dg/template/member5.C
gcc/testsuite/g++.dg/template/memfriend15.C
gcc/testsuite/g++.dg/template/memfriend16.C
gcc/testsuite/g++.dg/template/memfriend17.C
gcc/testsuite/g++.dg/template/memfriend7.C
gcc/testsuite/g++.dg/template/meminit1.C
gcc/testsuite/g++.dg/template/nested3.C
gcc/testsuite/g++.dg/template/non-type-template-argument-1.C
gcc/testsuite/g++.dg/template/nontype12.C
gcc/testsuite/g++.dg/template/nontype13.C
gcc/testsuite/g++.dg/template/nontype6.C
gcc/testsuite/g++.dg/template/pr23510.C
gcc/testsuite/g++.dg/template/pr35240.C
gcc/testsuite/g++.dg/template/ptrmem15.C
gcc/testsuite/g++.dg/template/ptrmem6.C
gcc/testsuite/g++.dg/template/qualified-id1.C
gcc/testsuite/g++.dg/template/qualttp20.C
gcc/testsuite/g++.dg/template/qualttp3.C
gcc/testsuite/g++.dg/template/qualttp4.C
gcc/testsuite/g++.dg/template/qualttp5.C
gcc/testsuite/g++.dg/template/qualttp6.C
gcc/testsuite/g++.dg/template/qualttp7.C
gcc/testsuite/g++.dg/template/qualttp8.C
gcc/testsuite/g++.dg/template/recurse.C
gcc/testsuite/g++.dg/template/recurse2.C
gcc/testsuite/g++.dg/template/ref5.C
gcc/testsuite/g++.dg/template/scope2.C
gcc/testsuite/g++.dg/template/sfinae10.C
gcc/testsuite/g++.dg/template/sfinae3.C
gcc/testsuite/g++.dg/template/sizeof3.C
gcc/testsuite/g++.dg/template/static9.C
gcc/testsuite/g++.dg/template/template-id-2.C
gcc/testsuite/g++.dg/template/typedef13.C
gcc/testsuite/g++.dg/template/typename4.C
gcc/testsuite/g++.dg/template/using14.C
gcc/testsuite/g++.dg/template/using2.C
gcc/testsuite/g++.dg/template/warn1.C
gcc/testsuite/g++.dg/warn/Wparentheses-13.C
gcc/testsuite/g++.dg/warn/Wparentheses-15.C
gcc/testsuite/g++.dg/warn/Wparentheses-16.C
gcc/testsuite/g++.dg/warn/Wparentheses-17.C
gcc/testsuite/g++.dg/warn/Wparentheses-18.C
gcc/testsuite/g++.dg/warn/Wparentheses-19.C
gcc/testsuite/g++.dg/warn/Wparentheses-20.C
gcc/testsuite/g++.dg/warn/Wparentheses-23.C
gcc/testsuite/g++.dg/warn/Wstrict-aliasing-3.C
gcc/testsuite/g++.dg/warn/noeffect2.C
gcc/testsuite/g++.dg/warn/noeffect4.C
gcc/testsuite/g++.dg/warn/pr8570.C
gcc/testsuite/g++.old-deja/g++.brendan/init2.C
gcc/testsuite/g++.old-deja/g++.eh/spec6.C
gcc/testsuite/g++.old-deja/g++.pt/crash10.C
gcc/testsuite/g++.old-deja/g++.pt/crash36.C
gcc/testsuite/g++.old-deja/g++.pt/derived3.C
gcc/testsuite/g++.old-deja/g++.pt/error2.C
gcc/testsuite/g++.old-deja/g++.pt/explicit70.C
gcc/testsuite/g++.old-deja/g++.pt/infinite1.C
gcc/testsuite/g++.old-deja/g++.pt/memtemp89.C
gcc/testsuite/g++.old-deja/g++.pt/overload7.C
gcc/testsuite/g++.old-deja/g++.pt/vaarg3.C
gcc/testsuite/lib/prune.exp
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/20_util/declval/requirements/1_neg.cc
libstdc++-v3/testsuite/20_util/duration/requirements/typedefs_neg1.cc
libstdc++-v3/testsuite/20_util/duration/requirements/typedefs_neg2.cc
libstdc++-v3/testsuite/20_util/duration/requirements/typedefs_neg3.cc
libstdc++-v3/testsuite/20_util/forward/1_neg.cc
libstdc++-v3/testsuite/20_util/make_signed/requirements/typedefs_neg.cc
libstdc++-v3/testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc
libstdc++-v3/testsuite/20_util/ratio/cons/cons_overflow_neg.cc
libstdc++-v3/testsuite/20_util/ratio/operations/ops_overflow_neg.cc
libstdc++-v3/testsuite/20_util/shared_ptr/assign/shared_ptr_neg.cc
libstdc++-v3/testsuite/ext/ext_pointer/1_neg.cc
libstdc++-v3/testsuite/ext/pb_ds/example/hash_resize_neg.cc
libstdc++-v3/testsuite/ext/type_traits/add_unsigned_floating_neg.cc
libstdc++-v3/testsuite/ext/type_traits/add_unsigned_integer_neg.cc
libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_floating_neg.cc
libstdc++-v3/testsuite/ext/type_traits/remove_unsigned_integer_neg.cc
libstdc++-v3/testsuite/lib/prune.exp
libstdc++-v3/testsuite/tr1/2_general_utilities/shared_ptr/assign/shared_ptr_neg.cc