re PR c++/44587 (ICE in instantiate_decl)
commitd3a79fcc3cabaf05e551f9b54b3ebd3ca9fc0f09
authorJason Merrill <jason@redhat.com>
Tue, 29 Jun 2010 19:29:02 +0000 (29 15:29 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 29 Jun 2010 19:29:02 +0000 (29 15:29 -0400)
treed2fc07b3af76168894748acc9219f892c6988204
parent7ecb00a6e253af7db561ce1422041c0ee7596478
re PR c++/44587 (ICE in instantiate_decl)

PR c++/44587
* pt.c (has_value_dependent_address): New.
(value_dependent_expression_p): Check it.
(convert_nontype_argument): Likewise.  Call decay_conversion before
folding if we want a pointer.
* semantics.c (finish_id_expression): Don't add SCOPE_REF if the
scope is the current instantiation.

From-SVN: r161559
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/qualified-id2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/qualified-id3.C [new file with mode: 0644]