1. 12 Nov, 2009 2 commits
  2. 11 Nov, 2009 1 commit
  3. 10 Nov, 2009 2 commits
  4. 09 Nov, 2009 2 commits
  5. 08 Nov, 2009 3 commits
    • 37920, not 37290 · 6b887d86
      From-SVN: r154021
      Jason Merrill committed
    • re PR target/37290 (Endless recursion in cse_cc_succs) · ecd0e976
      	PR c++/37290
      	* pt.c (tsubst) [TYPEOF_TYPE]: Set cp_unevaluated_operand.
      
      From-SVN: r154018
      Jason Merrill committed
    • re PR c++/18451 (C++ error message regression) · 67dc1f24
      	PR c++/18451
      	PR c++/40738
      	* cp-tree.h (cp_decl_specifier_seq): Add any_type_specifiers_p.
      	* parser.c (cp_parser_single_declaration): Call
      	cp_parser_parse_and_diagnose_invalid_type_name here, too.
      	(cp_parser_parameter_declaration): And here.
      	(cp_parser_parse_and_diagnose_invalid_type_name): Be
      	less picky about declarator form.  Don't skip to
      	the end of the block if	we're in a declarator.
      	(cp_parser_decl_specifier_seq): Set any_type_specifiers_p.
      	(cp_parser_simple_declaration): Check it.
      	(cp_parser_member_declaration): Likewise.
      	(cp_parser_diagnose_invalid_type_name): Tweak error message.
      	(cp_parser_expression_statement): Likewise.
      	* decl2.c (grokfield): Mention decltype instead of typeof.
      
      From-SVN: r154006
      Jason Merrill committed
  6. 06 Nov, 2009 9 commits
  7. 04 Nov, 2009 5 commits
  8. 03 Nov, 2009 6 commits
  9. 02 Nov, 2009 3 commits
    • re PR c++/37093 (ICE with pointer to member template parameters) · 9d5874cf
      Fix PR c++/37093
      
      gcc/cp/ChangeLog:
      
      	PR c++/37093
      	* pt.c (check_valid_ptrmem_cst_expr): New function.
      	(convert_nontype_argument): Use it to output an error for
      	illegal pointer to member expressions used as template arguments.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/37093
      	* g++.dg/other/ptrmem10.C: New test.
      	* g++.dg/other/ptrmem11.C: Likewise.
      
      From-SVN: r153822
      Dodji Seketeli committed
    • Restrict DR 757 change to C++0x mode. · 1eee69dd
      	* decl2.c (mark_used): Check cxx_dialect.
      	* decl.c (grokfndecl): Do check type linkage in C++98 mode.
      	(grokvardecl): Likewise.
      	* pt.c (check_instantiated_arg): Likewise.
      
      From-SVN: r153816
      Jason Merrill committed
    • re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in… · 9789ba46
      re PR c++/41774 (ice: vector VEC(visibility,base) pop domain error, in pop_visibility at c-pragma.c:757)
      
      	PR c++/41774
      	* c-pragma.c (visstack): Change into vector of ints rather than
      	enum symbol_visibility.
      	(push_visibility): Add kind argument, push default_visibility together
      	with kind.
      	(pop_visibility): Add kind argument, return true if successful, fail
      	if visibility stack is empty or if stack top is of different kind.
      	(handle_pragma_visibility): Don't check length of visstack, instead
      	call pop_visibility and issue diagnostics if it failed.  Pass 0
      	as last argument to push_visibility and pop_visibility.
      	* c-pragma.h (push_visibility): Add kind argument.
      	(pop_visibility): Likewise.  Return bool instead of void.
      
      	* name-lookup.c (handle_namespace_attrs): Pass 1 as last argument to
      	push_visibility.
      	* parser.c (cp_parser_namespace_definition): Pass 1 as argument to
      	pop_visibility.
      	* rtti.c (push_abi_namespace): Pass 2 as last argument to
      	push_visibility.
      	(pop_abi_namespace): Pass 2 as argument to pop_visibility.
      
      	* g++.dg/ext/visibility/namespace3.C: New test.
      
      From-SVN: r153805
      Jakub Jelinek committed
  10. 01 Nov, 2009 3 commits
  11. 30 Oct, 2009 4 commits
    • mangle.c (mangle_type_string_for_rtti): Reapply 153734. · 52669d59
      /gcc/cp
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* mangle.c (mangle_type_string_for_rtti): Reapply 153734.
      	(needs_fake_anon): Likewise.
      	(write_name): Likewise.
      	(write_nested_name): Likewise.
      	* cp-tree.h (mangle_type_string_for_rtti): Likewise.
      	(get_anonymous_namespace): Likewise.
      	* name-lookup.c (get_anonymous_namespace_name): Likewise.
      	* rtti.c (tinfo_name): Likewise, with +1 in the second 
      	build_string call fixed.
      	(tinfo_base_init): Likewise.
      
      libstdc++/
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* libsupc++/tinfo.cc (operator=(const type_info&)): Reapply 153734.
      	* libsupc++/typeinfo (type_info::name()): Likewise.
      	* libsupc++/tinfo2.cc (before):  Likewise.
      
      From-SVN: r153768
      Jerry Quinn committed
    • revert: decl.c (cp_fname_init): Correct build_string argument. · f0b150ba
      	Revert:
      	* decl.c (cp_fname_init): Correct build_string argument.
      
      From-SVN: r153765
      Jason Merrill committed
    • tinfo.cc (operator=(const type_info&)): Revert 153734. · 2ea9fa8a
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* libsupc++/tinfo.cc (operator=(const type_info&)): Revert 153734.
      	* libsupc++/typeinfo (type_info::name()): Likewise.
      	* libsupc++/tinfo2.cc (before):  Likewise.
      
      2009-10-30  Jerry Quinn  <jlquinn@optonline.net>
      
      	* mangle.c (mangle_type_string_for_rtti): Revert 153734.
      	(needs_fake_anon): Likewise.
      	(write_name): Likewise.
      	(write_nested_name): Likewise.
      	* cp-tree.h (mangle_type_string_for_rtti): Likewise.
      	(get_anonymous_namespace): Likewise.
      	* name-lookup.c (get_anonymous_namespace_name): Likewise.
      	* rtti.c (tinfo_name): Likewise.
      	(tinfo_base_init): Likewise.
      
      From-SVN: r153742
      Jerry Quinn committed
    • re PR c++/41863 (segfault with sizeof in template parameter) · 649fb657
      Fix PR c++/41863
      
      gcc/cp/ChangeLog:
      
      	PR c++/41863
      	* pt.c (iterative_hash_template_arg): articifial parms
      	don't have DECL_PARM_INDEX set. Do not hash it.
      
      gcc/testsuite/ChangeLog:
      
      	PR c++/41863
      	* g++.dg/template/sizeof12.C: New test.
      
      From-SVN: r153735
      Dodji Seketeli committed