This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/34758] [4.3/4.4/4.5/4.6/4.7 regression] Bad diagnostic for circular dependency in constructor default argument


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34758

--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> 2011-03-15 18:27:15 UTC ---
Author: jason
Date: Tue Mar 15 18:27:09 2011
New Revision: 171009

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171009
Log:
    PR c++/34758
    * call.c (convert_default_arg): Use DECL_ORIGIN of fn.  Check for
    recursion first.
    (push_defarg_context, pop_defarg_context): New.
    * parser.c (cp_parser_late_parsing_default_args): Use them.
    * cp-tree.h: Declare them.

Added:
    trunk/gcc/testsuite/g++.dg/parse/pr34758.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/parser.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]