re PR c++/40306 (ICE when using auto to declare a local copy inside a member function)
authorJason Merrill <jason@redhat.com>
Tue, 2 Jun 2009 17:02:27 +0000 (13:02 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 2 Jun 2009 17:02:27 +0000 (13:02 -0400)
commitccafc19b5bd8f4736a2788263aa5acd6d2b7a961
tree9d3141836e8e09dedf86b9b0e42dcb14993d4bed
parent69596c692d784340f5a7f828cceab6176db05ff0
re PR c++/40306 (ICE when using auto to declare a local copy inside a member function)

PR c++/40306
PR c++/40307
* decl.c (cp_finish_decl): Handle auto deduction from ().
* typeck.c (build_x_indirect_ref): Handle dereferencing an operand
with dependent type that is known to be a pointer.

From-SVN: r148088
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto14.C [new file with mode: 0644]