This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/40307] Problem with auto deducing class type inside one of its own member functions
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2009 17:03:09 -0000
- Subject: [Bug c++/40307] Problem with auto deducing class type inside one of its own member functions
- References: <bug-40307-17779@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jason at gcc dot gnu dot org 2009-06-02 17:03 -------
Subject: Bug 40307
Author: jason
Date: Tue Jun 2 17:02:27 2009
New Revision: 148088
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148088
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto14.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40307