- 01 Dec, 2008 1 commit
-
-
PR c++/38257 * parser.c (cp_parser_omp_for_loop): Handle auto. * pt.c (tsubst_omp_for_iterator): Likewise. * testsuite/libgomp.c++/for-7.C: New test. From-SVN: r142320
Jakub Jelinek committed
-
- 28 Nov, 2008 2 commits
-
-
PR c++/38233 * init.c (perform_member_init): Fix value-initialization. (build_value_init_1): Add assert to catch cases that will break in the gimplifier. (build_default_init): Remove. * cp-tree.h: Remove its prototype. * pt.c (tsubst_expr) [DECL_EXPR]: Use build_value_init for value-initialization. From-SVN: r142265
Jason Merrill committed -
PR c++/38278 * parser.c (cp_parser_class_name): Only call maybe_note_name_used_in_class if we actually found a class name. From-SVN: r142263
Jason Merrill committed
-
- 26 Nov, 2008 1 commit
-
-
PR c++/28743 * decl2.c (check_classfn): Error rather than abort on parameter list mismatch. From-SVN: r142212
Jason Merrill committed
-
- 20 Nov, 2008 3 commits
-
-
PR c++/28513 * parser.c (cp_parser_class_name): Call maybe_note_name_used_in_class. From-SVN: r142056
Jason Merrill committed -
PR c++/37540 * call.c (build_over_call): Take the address of the function even in a template. (build_new_method_call): Remember the type of the called function in a template. From-SVN: r142054
Jason Merrill committed -
gcc/testsuite/ChangeLog: 2008-11-19 Dodji Seketeli <dodji@redhat.com> PR c++/37142 * g++.dg/template/crash85.C: New test. gcc/cp/ChangeLog 2008-11-19 Dodji Seketeli <dodji@redhat.com> PR c++/37142 * pt.c (coerce_template_template_parm): Use the more robust uses_template_parms instead of dependent_type_p. From-SVN: r142025
Dodji Seketeli committed
-
- 19 Nov, 2008 4 commits
-
-
gcc/cp/ChangeLog: 2008-11-19 Dodji Seketeli <dodji@redhat.com> PR c++/35405 * pt.c (lookup_template_class): Check pointers before dereferencing Them. * error.c (dump_template_decl): Likewise. gcc/testsuite/ChangeLog: 2008-11-19 Dodji Seketeli <dodji@redhat.com> PR c++/35405 * g++.dg/template/crash84.C: New test. From-SVN: r142022
Dodji Seketeli committed -
PR c++/36410 * decl2.c (grokfield): Pass ATTR_FLAG_TYPE_IN_PLACE for a typedef that names a class for linkage purposes. From-SVN: r142019
Jason Merrill committed -
PR c++/37563 * parser.c (cp_parser_pseudo_destructor_name): A pseudo-destructor name is not a declaration. From-SVN: r142015
Jason Merrill committed -
PR c++/37256 * pt.c (instantiate_decl): Don't require a definition of a template that is explicitly instantiated 'extern'. From-SVN: r142014
Jason Merrill committed
-
- 18 Nov, 2008 1 commit
-
-
PR c++/37962 cp/ * parser.c (cp_parser_type_id): Complain about auto. * decl.c (grokdeclarator): Complain about parameters and conversion functions declared with auto. * call.c (standard_conversion): Use CLASS_TYPE_P instead of MAYBE_CLASS_TYPE_P. * cp-tree.h (TYPE_NON_AGGREGATE_CLASS): Likewise. testsuite/ * g++.dg/cpp0x/auto[38].C: Adjust expected errors. * g++.dg/cpp0x/auto9.C: New test. * g++.dg/cpp0x/auto10.C: New test. Co-Authored-By: Jakub Jelinek <jakub@redhat.com> From-SVN: r141970
Jason Merrill committed
-
- 17 Nov, 2008 1 commit
-
-
PR c++/36089 * init.c (constant_value_1): Handle TREE_LIST init. * g++.dg/template/init8.C: New test. From-SVN: r141941
Jakub Jelinek committed
-
- 15 Nov, 2008 1 commit
-
-
PR c++/37561 * c-typeck.c (build_unary_op): Don't call get_unwidened. Use argtype instead of result_type. * typeck.c (cp_build_unary_op): Don't call get_unwidened. Use argtype instead of result_type. * gcc.dg/pr37561.c: New test. * g++.dg/other/increment1.C: New test. From-SVN: r141881
Jakub Jelinek committed
-
- 14 Nov, 2008 3 commits
-
-
PR c++/38030 * semantics.c (finish_call_expr): Remember the result of non-dependent overload resolution. From-SVN: r141866
Jason Merrill committed -
PR c++/37740 * call.c (build_aggr_conv): Increment i. From-SVN: r141865
Jason Merrill committed -
PR c++/37932 * typeck2.c (process_init_constructor_record): Update bitfield handling. (check_narrowing): Update bitfield handling, print source type. From-SVN: r141843
Jason Merrill committed
-
- 12 Nov, 2008 4 commits
-
-
PR c++/36478 Revert: 2007-05-07 Mike Stump <mrs@apple.com> * doc/invoke.texi (Warning Options): Document that -Wempty-body also checks for and while statements in C++. Revert: 2007-05-07 Mike Stump <mrs@apple.com> * parser.c (check_empty_body): Add. (cp_parser_iteration_statement): Add call to check_empty_body. * g++.old-deja/g++.mike/empty.C: Remove. From-SVN: r141810
Jakub Jelinek committed -
re PR c++/38007 (g++ instantiate same operator twice due to bitfield in -O0 mode, causing symbol already defined assembler error) PR c++/38007 gcc/cp/ * typeck.c (cp_build_modify_expr): Update bitfield handling. gcc/ * c-common.c (c_common_signed_or_unsigned_type): Remove C++ special casing. gcc/testsuite/ * g++.dg/conversion/bitfield10.C: New test. * g++.dg/warn/pr35635.C (func1): Accept additional warning. * g++.old-deja/g++.mike/enum1.C: Expect warn about assignment. * g++.dg/expr/bitfield9.C: Pass -Wno-overflow. From-SVN: r141800
Jason Merrill committed -
PR c++/34269 * parser.c (cp_parser_simple_declaration): Don't commit to tentative parse if parse errors were seen. * g++.dg/cpp0x/decltype13.C: New test. * g++.dg/cpp0x/decltype-33837.C: Adjust dg-error pattern. * g++.dg/cpp0x/pr33839.C: Likewise. From-SVN: r141793
Jakub Jelinek committed -
PR c++/35334 * c-pretty-print.c (pp_c_complex_expr): New function. (pp_c_postfix_expression) <case COMPLEX_EXPR>: Call it. * error.c (dump_expr): Handle COMPLEX_EXPR. * gcc.dg/pr35334.c: New test. * g++.dg/other/error29.C: New test. From-SVN: r141783
Jakub Jelinek committed
-
- 10 Nov, 2008 1 commit
-
-
PR c++/38021 * parser.c (cp_parser_enum_specifier): After parsing :, parse definitely. Don't return early if type specifier is erroneous. * g++.dg/cpp0x/enum1.C: New test. From-SVN: r141739
Jakub Jelinek committed
-
- 06 Nov, 2008 1 commit
-
-
PR target/26397 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Define. cp/ * g++spec.c (LIBSTDCXX_STATIC): New. (lang_spec_driver): Use LIBSTDCXX_STATIC when not shared_libgcc. From-SVN: r141646
David Edelsohn committed
-
- 05 Nov, 2008 2 commits
-
-
PR c++/35219 * cp-tree.h: Fix DECL_NONSTATIC_MEMBER_P to handle member template functions. From-SVN: r141612
Fabien Chêne committed -
2008-11-05 Richard Guenther <rguenther@suse.de> PR middle-end/37742 * tree-ssa.c (useless_type_conversion_p_1): Check different restrict qualified pointer conversion before stripping qualifiers. * gimplify.c (create_tmp_from_val): Use correctly qualified type. * tree-flow.h (may_propagate_address_into_dereference): Declare. * tree-ssa-ccp.c (may_propagate_address_into_dereference): New function. (ccp_fold): Use it. * tree-ssa-forwprop.c (rhs_to_tree): Remove useless conversions, properly canonicalize binary ops. (forward_propagate_addr_expr_1): Use may_propagate_address_into_dereference. cp/ * decl.c (start_preparsed_function): Use the correct type for building the RESULT_DECL. * gcc.c-torture/compile/pr37742.c: New testcase. * g++.dg/pr37742.C: Likewise. * gcc.dg/tree-ssa/forwprop-7.c: Check for two volatile loads. From-SVN: r141606
Richard Guenther committed
-
- 31 Oct, 2008 2 commits
-
-
PR c++/37967 * decl.c (grokdeclarator): Diagnose auto function decl without late return type and late return type function decl where type is not auto. * g++.dg/cpp0x/auto8.C: New test. From-SVN: r141502
Jakub Jelinek committed -
PR c++/37965 * decl.c (cp_finish_decl): Diagnose type_uses_auto type with no initializer. * g++.dg/cpp0x/auto7.C: New test. From-SVN: r141501
Jakub Jelinek committed
-
- 29 Oct, 2008 2 commits
-
-
2008-10-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org> PR 11492 * c-common.c (min_precision): Move to... * tree.c (tree_int_cst_min_precision): ... to here. Renamed. * tree.h (tree_int_cst_min_precision): Declare. * c-common.h (min_precision): Delete declaration. * fold-const.c (tree_binary_nonnegative_warnv_p): Handle multiplication of non-negative integer constants. * c-decl.c (check_bitfield_type_and_width): Rename min_precision to tree_int_cst_min_precision. (finish_enum): Likewise. cp/ * class.c (check_bitfield_decl): Rename min_precision to tree_int_cst_min_precision. * decl.c (finish_enum): Likewise. testsuite/ * gcc.dg/pr11492.c: New. * g++.dg/warn/pr11492.C: New. From-SVN: r141434
Manuel López-Ibáñez committed -
re PR c++/26997 (g++ reports misleading error message when the identifier with error occurs earlier on the same line) 2008-10-29 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/26997 cp/ * parser.c (cp_parser_token_starts_cast_expression): New. (cp_parser_cast_expression): Peek the next token to decide whether this could be a parenthesized constructor or is definitely an actual cast. testsuite/ * g++.dg/parse/pr26997.C: New. From-SVN: r141429
Manuel López-Ibáñez committed
-
- 24 Oct, 2008 2 commits
-
-
2008-10-24 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c/7543 * value-prof.c (gimple_stringop_fixed_value): Use parentheses around bit operation. * profile.c (is_edge_inconsistent): Likewise. * fold-const.c (truth_value_p): Move from here... * tree.h (truth_value_p): ... to here. * c-tree.h (c_expr): Update description of original_code. * c-typeck.c (parser_build_unary_op): Set original_code. (parser_build_binary_op): Update call to warn_about_parentheses. * c-common.c (warn_about_parentheses): Take two additional arguments of the operands. Use a switch. Quote operators appropriately. Define macro APPEARS_TO_BE_BOOLEAN_EXPR_P. Add warning about !x | y and !x & y. * c-common.h (warn_about_parentheses): Update declaration. cp/ * typeck.c (build_x_binary_op): Update call to warn_about_parentheses. * parser.c (cp_parser_binary_expression): Add note about passing the correct code for unary expressions. testsuite/ * gcc.dg/Wparentheses-11.c: New. * g++.dg/warn/Wparentheses-25.C: New. XFAILED. From-SVN: r141340
Manuel López-Ibáñez committed -
contrib/ * dg-extract-results.sh: New file. gcc/ * Makefile.in (lang_checks_parallelized, check_gcc_parallelize, check_p_tool, check_p_vars, check_p_subno, check_p_comma, check_p_subwork, check_p_numbers, check_p_subdir, check_p_subdirs): New variables. (check-subtargets, check-%-subtargets, check-parallel-%): New targets. (check-%): For test targets listed in lang_checks_parallelized if -j is used and RUNTESTFLAGS doesn't specify tests to execute, run the testing in multiple make goals, possibly parallel, and afterwards run dg-extract-results.sh to merge the sum and log files. gcc/cp/ * Make-lang.in (check-c++-subtargets): New alias for check-g++-subtargets. (lang_checks_parallelized): Add check-g++. (check_g++_parallelize): New variable. gcc/fortran/ * Make-lang.in (check-f95-subtargets, check-fortran-subtargets): New aliases for check-gfortran-subtargets. (lang_checks_parallelized): Add check-gfortran. (check_gfortran_parallelize): New variable. gcc/ada/ * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on check-acats-subtargets and check-gnat-subtargets. (check_acats_targets): New variable. (check-acats-subtargets, check-acats%): New targets. (check-acats): If -j is used and CHAPTERS is empty, run the testing in multiple make goals, possibly parallel, and afterwards run dg-extract-results.sh to merge the sum and log files. gcc/java/ * Make-lang.in (check-java-subtargets): New target. libstdc++-v3/ * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Remove dejagnu. (RUNTESTDEFAULTFLAGS, EXPECT, check_DEJAGNU_normal_targets): New variables. (%/site.exp, check-DEJAGNU%): New targets. (check-am): Run $(MAKE) check-DEJAGNU. * testsuite/Makefile.in: Regenerated. From-SVN: r141337
Jakub Jelinek committed
-
- 21 Oct, 2008 1 commit
-
-
2008-10-21 Richard Guenther <rguenther@suse.de> * semantics.c (simplify_aggr_init_exprs_r): Remove. (expand_or_defer_fn): Do not walk the function body to simplify aggr_init_exprs. From-SVN: r141260
Richard Guenther committed
-
- 19 Oct, 2008 1 commit
-
-
2008-10-20 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/37004 cp/ * typeck.c (cp_common_type): New. The same as type_after_usual_arithmetic_conversions but without promotions. (type_after_usual_arithmetic_conversions): Do the promotions and call cp_common_type. (common_type): Make it behave like the C version of this function. Do not handle pointer types. (common_pointer_type): Move handling of pointer types from common_type to here. (cp_build_binary_op): Use common_pointer_type instead of common_type in call to pointer_diff. Use cp_common_type instead of common_type. * cp-tree.h (common_pointer_type): Declare. testsuite/ * g++.dg/warn/Wconversion-pr34389.C: Remove XFAIL. From-SVN: r141233
Manuel López-Ibáñez committed
-
- 14 Oct, 2008 2 commits
-
-
PR c++/37819 * cp-gimplify.c (cp_genericize_r): Only fold_convert COND_EXPR arguments if they don't already have COND_EXPR's type. * g++.dg/expr/bitfield11.C: New test. From-SVN: r141118
Jakub Jelinek committed -
/cp 2008-10-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37650 * pt.c (push_template_decl_real): Check that current_template_parms is not null. (process_partial_specialization): Assert current_template_parms not null. /testsuite 2008-10-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/37650 * g++.dg/template/crash83.C: New. From-SVN: r141115
Paolo Carlini committed
-
- 13 Oct, 2008 1 commit
-
-
From-SVN: r141088
Doug Evans committed
-
- 10 Oct, 2008 1 commit
-
-
PR c++/37146 * cp-gimplify.c (cp_genericize_r): Fix up bitfield operands of COND_EXPR. * g++.dg/torture/pr37146-1.C: New test. * g++.dg/torture/pr37146-2.C: New test. * g++.dg/expr/bitfield10.C: New test. From-SVN: r141045
Jakub Jelinek committed
-
- 09 Oct, 2008 1 commit
-
-
PR c++/37568 * semantics.c (finalize_nrv_r): Clear DECL_INITIAL instead of setting it to error_mark_node. * testsuite/libmudflap.c++/pass66-frag.cxx: New test. From-SVN: r141010
Jakub Jelinek committed
-
- 07 Oct, 2008 1 commit
-
-
From-SVN: r140952
Steve Ellcey committed
-
- 06 Oct, 2008 1 commit
-
-
gcc/cp/: PR c++/37376, other mangling issues * mangle.c (write_type): Update TYPE_PACK_EXPANSION mangling. (write_member_name): Break out from... (write_expression): ...here. Handle dependent COMPONENT_REF. (write_template_arg): Wrap an argument pack in 'I'/'E'. (write_builtin_type): Update char16/32_t mangling. (write_nested_name, write_prefix): Don't forget template args for typename types. * operators.def: Add ARROW_EXPR, update COMPONENT_REF and EXPR_PACK_EXPANSION. libstdc++-v3/: * config/abi/pre/gnu.ver: Update char16/32_t manglings. include/: * demangle.h (enum demangle_component_type): Add DEMANGLE_COMPONENT_PACK_EXPANSION. libiberty/: * cp-demangle.c (struct d_print_info): Add pack_index. (d_dump): Add DEMANGLE_COMPONENT_PACK_EXPANSION. (d_make_comp): Likewise. DEMANGLE_COMPONENT_ARGLIST and DEMANGLE_COMPONENT_TEMPLATE_ARGLIST can have two null args. (cplus_demangle_builtin_types): Add char16/32_t. (cplus_demangle_type): Recognize them. (d_template_args): Handle empty argument packs. (d_template_arg): Handle argument packs. (d_expression): Handle dependent name. (d_index_template_argument): New fn. (d_lookup_template_argument): New fn. (d_find_pack, d_pack_length): New fn. (d_print_subexpr): Split out... (d_print_comp): ...from here. Use d_*_template_argument. Handle empty arg lists. Support pack expansions. * cp-demangle.h (D_BUILTIN_TYPE_COUNT): Increase to 32. From-SVN: r140916
Jason Merrill committed
-