summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x
Commit message (Collapse)AuthorAgeFilesLines
* PR c++/63415jason2014-10-101-0/+7
| | | | | | | * pt.c (value_dependent_expression_p) [CONSTRUCTOR]: Check the type. (iterative_hash_template_arg): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216107 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/63405jason2014-10-081-0/+14
| | | | | | * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@216014 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-09-221-0/+11
| | | | | | | | | | | | | | | | 2014-09-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/62219 * pt.c (check_default_tmpl_args): Check LAMBDA_FUNCTION_P. /testsuite 2014-09-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/62219 * g++.dg/cpp0x/lambda/lambda-template14.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215483 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-09-17 Paolo Carlini <paolo.carlini@oracle.com>paolo2014-09-171-0/+13
| | | | | | | | PR c++/63241 * g++.dg/cpp0x/constexpr-63241.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215327 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/63139jason2014-09-111-0/+51
| | | | | | * pt.c (tsubst_pack_expansion): Simplify substitution into T.... git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215172 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/62129jason2014-08-251-0/+16
| | | | | | | | | | * class.c (outermost_open_class): New. * cp-tree.h: Declare it. * decl.c (maybe_register_incomplete_var): Use it. (complete_vars): Handle any constant variable. * expr.c (cplus_expand_constant): Handle CONSTRUCTOR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@214424 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/cpp0x/lambda/lambda-template13.C: Specify -fabi-version=0.jason2014-08-201-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@214244 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61566jason2014-08-201-1/+5
| | | | | | | | | | * pt.c (instantiate_class_template_1): Ignore lambda on CLASSTYPE_DECL_LIST. (push_template_decl_real): A lambda is not primary. * lambda.c (maybe_add_lambda_conv_op): Distinguish between being currently in a function and the lambda living in a function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@214206 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61959jason2014-08-071-0/+28
| | | | | | * semantics.c (cxx_eval_bare_aggregate): Handle POINTER_PLUS_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@213733 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61994jason2014-08-071-0/+13
| | | | | | | * init.c (build_vec_init): Leave atype an ARRAY_TYPE if we're just returning an INIT_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@213726 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/58714jason2014-08-071-0/+13
| | | | | | * tree.c (stabilize_expr): A stabilized prvalue is an xvalue. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@213724 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/58636jason2014-07-141-0/+9
| | | | | | * call.c (build_list_conv): Don't try to build a list of references. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212508 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61661jason2014-07-101-0/+13
| | | | | | * semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212440 138bc75d-0d04-0410-961f-82ee72b054a4
* libcpp/emsr2014-07-091-0/+13
| | | | | | | | | | | | | | | | | | | | | 2014-07-09 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped by preprocessor * lex.c (lex_raw_string ()): Do not warn about invalid suffix if skipping. (lex_string ()): Ditto. gcc/testsuite/ 2014-07-09 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58155 - -Wliteral-suffix warns about tokens which are skipped g++.dg/cpp0x/pr58155.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212393 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61382jakub2014-07-041-1/+1
| | | | | | | | | | Backport from mainline 2014-06-05 Andreas Schwab <schwab@suse.de> * g++.dg/cpp0x/initlist86.C (main): Initialize i. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212289 138bc75d-0d04-0410-961f-82ee72b054a4
* Correct accidental doubling of the tests.ppluzhnikov2014-07-013-46/+3
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212208 138bc75d-0d04-0410-961f-82ee72b054a4
* Backport r210653 from mainline:ppluzhnikov2014-07-013-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/teststuite/ChangeLog: 2014-07-01 Paul Pluzhnikov <ppluzhnikov@google.com> PR c++/58753 PR c++/58930 PR c++/58704 Backported from mainline 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/nsdmi-template11.C: New. * g++.dg/cpp0x/nsdmi-template12.C: Likewise. * g++.dg/cpp0x/nsdmi-template13.C: Likewise. gcc/cp/ChangeLog: 2014-07-01 Paul Pluzhnikov <ppluzhnikov@google.com> PR c++/58753 PR c++/58930 PR c++/58704 Backported from mainline 2014-05-20 Paolo Carlini <paolo.carlini@oracle.com> * typeck2.c (digest_nsdmi_init): New. * parser.c (cp_parser_late_parse_one_default_arg): Use it. * init.c (get_nsdmi): Likewise. * cp-tree.h (digest_nsdmi_init): Declare. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212207 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/emsr2014-07-012-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | 2014-06-28 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58781 PR c++/60249 PR c++/59867 * parser.c (cp_parser_userdef_string_literal()): Take a tree not a cp_token*. (cp_parser_string_literal(): Don't hack the token stream! testsuite/ 2014-06-28 Edward Smith-Rowland <3dw4rd@verizon.net> PR c++/58781 PR c++/60249 PR c++/59867 * testsuite/g++.dg/cpp0x/pr58781.C: New. * testsuite/g++.dg/cpp0x/pr60249.C: New. * testsuite/g++.dg/cpp1y/pr59867.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212188 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61566jason2014-06-301-0/+20
| | | | | | * mangle.c (decl_mangling_context): Look through a TEMPLATE_DECL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212166 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61539jason2014-06-301-0/+49
| | | | | | | * pt.c (unify_one_argument): Type/expression mismatch just causes deduction failure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212156 138bc75d-0d04-0410-961f-82ee72b054a4
* DR 1030jason2014-06-301-0/+18
| | | | | | | | | | | | | | | | PR c++/51253 PR c++/61382 * cp-tree.h (CALL_EXPR_LIST_INIT_P): New. * call.c (struct z_candidate): Add flags field. (add_candidate): Add flags parm. (add_function_candidate, add_conv_candidate, build_builtin_candidate) (add_template_candidate_real): Pass it. (build_over_call): Set CALL_EXPR_LIST_INIT_P. * tree.c (build_aggr_init_expr): Copy it. * semantics.c (simplify_aggr_init_expr): Copy it. * cp-gimplify.c (cp_gimplify_expr): Handle it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@212150 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61242jason2014-06-251-0/+17
| | | | | | | * call.c (build_aggr_conv): Ignore passed in flags. (build_array_conv, build_complex_conv): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211998 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61556jason2014-06-201-0/+32
| | | | | | * call.c (build_over_call): Call build_this in template path. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211855 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/59296jason2014-06-191-0/+13
| | | | | | | * call.c (add_function_candidate): Set LOOKUP_NO_RVAL_BIND |LOOKUP_NO_TEMP_BIND for ref-qualifier handling. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211820 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61507jason2014-06-191-0/+14
| | | | | | | * pt.c (resolve_overloaded_unification): Preserve ARGUMENT_PACK_EXPLICIT_ARGS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211819 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61134jason2014-06-031-0/+24
| | | | | | * pt.c (pack_deducible_p): Handle canonicalization. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@211175 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/61151jason2014-05-131-0/+30
| | | | | | * lambda.c (is_this): Allow capture proxies too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210392 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-05-071-0/+41
| | | | | | | | | | | | | | | | | 2014-05-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61083 * pt.c (convert_nontype_argument): Protect all the error calls with complain & tf_error. /testsuite 2014-05-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/61083 * g++.dg/cpp0x/sfinae50.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210186 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-05-062-0/+30
| | | | | | | | | | | | | | | | | | 2014-05-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60999 * pt.c (maybe_begin_member_template_processing): Use uses_template_parms. /testsuite 2014-05-06 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60999 * g++.dg/cpp0x/nsdmi-template9.C: New. * g++.dg/cpp0x/nsdmi-template10.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210127 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60992jason2014-05-021-0/+38
| | | | | | | | | | * lambda.c (lambda_capture_field_type): Wrap anything dependent other than 'this' or a VLA. (is_this): New. * pt.c (tsubst_copy) [VAR_DECL]: Also build a new VAR_DECL if the operand was static or constant. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@210018 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60980jason2014-04-301-0/+15
| | | | | | * init.c (build_value_init): Don't try to call an array constructor. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@209936 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60951jason2014-04-301-0/+17
| | | | | | * typeck2.c (massage_init_elt): Use maybe_constant_init. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@209935 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-04-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2014-04-101-0/+6
| | | | | | | | PR c++/52844 * g++.dg/cpp0x/variadic156.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209276 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-04-041-0/+12
| | | | | | | | | | | | | | | | 2014-04-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58207 * semantics.c (sort_constexpr_mem_initializers): Robustify loop. /testsuite 2014-04-04 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58207 * g++.dg/cpp0x/constexpr-ice15.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209128 138bc75d-0d04-0410-961f-82ee72b054a4
* * pt.c (process_partial_specialization): Say "not deducible"jason2014-04-012-2/+2
| | | | | | rather than "not used". Use inform. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209000 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60374jason2014-04-012-0/+12
| | | | | | | * pt.c (coerce_template_parms): Check that the pack expansion pattern works with the first matching parameter. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208999 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-04-01 Fabien ChĂȘne <fabien@gcc.gnu.org>fabien2014-04-011-1/+1
| | | | | | | | | | | | | | * cp/init.c (perform_member_init): Homogenize uninitialized diagnostics. 2014-04-01 Fabien ChĂȘne <fabien@gcc.gnu.org> * g++.dg/init/ctor4.C: Adjust. * g++.dg/init/ctor4-1.C: New. * g++.dg/cpp0x/defaulted2.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208998 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60708jason2014-04-011-0/+20
| | | | | | * call.c (build_array_conv): Call complete_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208996 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60713jason2014-04-011-0/+25
| | | | | | | | * typeck2.c (PICFLAG_SIDE_EFFECTS): New. (picflag_from_initializer): Return it. (process_init_constructor): Handle it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208995 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60375jason2014-03-252-0/+9
| | | | | | | * parser.c (cp_parser_lambda_expression): Don't parse the body of a lambda in unevaluated context. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208817 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/60628jason2014-03-251-0/+9
| | | | | | * decl.c (create_array_type_for_decl): Complain about array of auto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208816 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-03-191-0/+8
| | | | | | | | | | | | | | | | | 2014-03-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51474 * call.c (build_new_method_call_1): Handle pure virtuals called by NSDMIs too. /testsuite 2014-03-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51474 * g++.dg/cpp0x/nsdmi-virtual2.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208686 138bc75d-0d04-0410-961f-82ee72b054a4
* 2014-03-18 Paolo Carlini <paolo.carlini@oracle.com>paolo2014-03-182-0/+26
| | | | | | | | | | | | | PR c++/60305 * g++.dg/cpp0x/constexpr-ice14.C: New. 2014-03-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/54250 * g++.dg/cpp0x/lambda/lambda-ice12.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208658 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-03-171-0/+8
| | | | | | | | | | | | | | | | 2014-03-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59571 * typeck2.c (check_narrowing): Use fold_non_dependent_expr_sfinae. /testsuite 2014-03-17 Paolo Carlini <paolo.carlini@oracle.com> PR c++/59571 * g++.dg/cpp0x/constexpr-ice13.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208619 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-03-133-1/+19
| | | | | | | | | | | | | | | | | | | 2014-03-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60254 * semantics.c (finish_static_assert): Call cxx_constant_value only if require_potential_rvalue_constant_expression returns true. /testsuite 2014-03-13 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60254 * g++.dg/cpp0x/static_assert10.C: New. * g++.dg/cpp0x/static_assert11.C: Likewise. * g++.dg/cpp0x/static_assert3.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208538 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-03-111-0/+14
| | | | | | | | | | | | | | | | | | 2014-03-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60389 * method.c (get_inherited_ctor): New. * cp-tree.h (get_inherited_ctor): Declare it. * semantics.c (is_valid_constexpr_fn): Use it. /testsuite 2014-03-11 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60389 * g++.dg/cpp0x/inh-ctor19.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208491 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/cpp0x/alias-decl-debug-0.C: Move dg-skip after dg-do.schwab2014-03-091-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208441 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/g++-dg.exp (g++-dg-runtest): Run tests in C++1y mode, too.jason2014-03-071130-1886/+1273
| | | | | | | | | | | | | | * lib/target-supports.exp (check_effective_target_c++11): Now means C++11 and up. (check_effective_target_c++11_only): New. (check_effective_target_c++11_down): New. (check_effective_target_c++1y): New. (check_effective_target_c++1y_only): New. (check_effective_target_c++98_only): Rename from check_effective_target_c++98. * g++.dg/*: Use { target c++11 } instead of -std=c++11. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208416 138bc75d-0d04-0410-961f-82ee72b054a4
* * typeck.c (comp_template_parms_position): 'auto' andjason2014-03-071-1/+1
| | | | | | 'decltype(auto)' are different from real template parms. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208414 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2014-03-071-0/+9
| | | | | | | | | | | | | | | | | 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58609 * decl.c (check_initializer): Return NULL_TREE after error; consistently use inform. /testsuite 2014-03-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58609 * g++.dg/cpp0x/constexpr-ice12.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@208410 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud