summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/cpp0x
Commit message (Collapse)AuthorAgeFilesLines
...
* /cppaolo2013-07-301-0/+7
| | | | | | | | | | | | | | | | | 2013-07-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57673 * parser.c (cp_parser_cache_defarg): In an NSDMI don't stop when token->type == CPP_ELLIPSIS. /testsuite 2013-07-30 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57673 * g++.dg/cpp0x/nsdmi-sizeof.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201354 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57901jason2013-07-301-0/+16
| | | | | | | * semantics.c (build_data_member_initialization, constexpr_fn_retval): Use break_out_target_exprs instead of unshare_expr. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201338 138bc75d-0d04-0410-961f-82ee72b054a4
* Skip tests that make assumptions about struct layout that don't holdamylaar2013-07-2611-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on epiphany. These tests could be fixed by adding padded attributes, See: http://gcc.gnu.org/ml/gcc-patches/2011-08/msg00006.html http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01513.html http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01504.html * g++.dg/cpp0x/cast.C: Skip for epiphany-*-*. * g++.dg/cpp0x/iop.C: Likewise. * g++.dg/cpp0x/named_refs.C: Likewise. * g++.dg/cpp0x/rv1p.C: Likewise. * g++.dg/cpp0x/rv2p.C: Likewise. * g++.dg/cpp0x/rv3p.C: Likewise. * g++.dg/cpp0x/rv4p.C: Likewise. * g++.dg/cpp0x/rv5p.C: Likewise. * g++.dg/cpp0x/rv6p.C: Likewise. * g++.dg/cpp0x/rv7p.C: Likewise. * g++.dg/cpp0x/rv8p.C: Likewise. * g++.dg/ext/strncpy-chk1.C: Likewise. * gcc.dg/builtin-object-size-10.c: Likewise. * gcc.dg/builtin-object-size-11.c: Likewise. * gcc.dg/builtin-stringop-chk-1.c: Likewise. * gcc.dg/pr25805.c: Likewise. * gcc.c-torture/execute/builtins/memcpy-chk.x: New file. * gcc.c-torture/execute/builtins/memmove-chk.x: Likewise. * gcc.c-torture/execute/builtins/mempcpy-chk.x: Likewise. * gcc.c-torture/execute/builtins/memset-chk.x: Likewise. * gcc.c-torture/execute/builtins/snprintf-chk.x: Likewise. * gcc.c-torture/execute/builtins/sprintf-chk.x: Likewise. * gcc.c-torture/execute/builtins/stpcpy-chk.x: Likewise. * gcc.c-torture/execute/builtins/strcat-chk.x: Likewise. * gcc.c-torture/execute/builtins/strcpy-chk.x: Likewise. * gcc.c-torture/execute/builtins/strncat-chk.x: Likewise. * gcc.c-torture/execute/builtins/strncpy-chk.x: Likewise. * gcc.c-torture/execute/builtins/vsnprintf-chk.x: Likewise. * gcc.c-torture/execute/builtins/vsprintf-chk.x: Likewise. * gcc.c-torture/execute/zerolen-2.x: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201268 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-26 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-07-261-0/+220
| | | | | | | | PR c++/57101 * g++.dg/cpp0x/pr57101.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201262 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-07-251-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57981 * decl.c (check_default_argument): Take a tsubst_flags_t parameter. (grokparms): Adjust. * parser.c (cp_parser_late_parse_one_default_arg): Likewise. * pt.c (tsubst_default_argument, tsubst_default_arguments): Take a tsubst_flags_t parameter. (tsubst_decl): Adjust. * call.c (convert_default_arg): Likewise. * cp-tree.h (check_default_argument, tsubst_default_argument): Update declarations. /testsuite 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57981 * g++.dg/cpp0x/pr57981.C: New. /cp 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57880 * parser.c (cp_parser_operator, case CPP_WSTRING, CPP_STRING16, CPP_STRING32, CPP_UTF8STRING, CPP_WSTRING_USERDEF, CPP_STRING16_USERDEF, CPP_STRING32_USERDEF, CPP_UTF8STRING_USERDEF): Fix string_len management, tidy. /testsuite 2013-07-25 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57880 * g++.dg/cpp1y/udlit-empty-string-neg.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201245 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-22 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-07-221-0/+11
| | | | | | | | PR c++/52816 * g++.dg/cpp0x/decltype56.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201136 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57402jason2013-07-131-0/+20
| | | | | | | * init.c (build_vec_init): Use {} for arrays of class type. (build_vec_delete): Don't take the address of the array. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200939 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-07-101-0/+15
| | | | | | | | PR c++/57827 * g++.dg/cpp0x/constexpr-ice7.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200892 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-07-101-0/+21
| | | | | | | | PR c++/57874 * g++.dg/cpp0x/sfinae48.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200880 138bc75d-0d04-0410-961f-82ee72b054a4
* /c-familypaolo2013-07-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57869 * c.opt: Add Wconditionally-supported. /cp 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57869 * typeck.c (build_reinterpret_cast_1): With -Wconditionally-supported warn about casting between pointer-to-function and pointer-to-object. /gcc 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57869 * doc/invoke.texi: Document -Wconditionally-supported. /testsuite 2013-07-10 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57869 * g++.dg/cpp0x/reinterpret_cast1.C: New. * g++.dg/warn/Wconditionally-supported-1.C: Likewise. * g++.dg/conversion/dr195.C: Update. * g++.dg/expr/cast2.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200876 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57471jason2013-07-091-0/+14
| | | | | | * parser.c (cp_parser_sizeof_pack): Clear parser scopes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200852 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57658jason2013-07-091-0/+19
| | | | | | | * semantics.c (finish_id_expression): Return the id for an unevaluated outer variable. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200845 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57526jason2013-07-091-0/+24
| | | | | | | * semantics.c (lambda_capture_field_type): Build a DECLTYPE_TYPE if the variable type uses 'auto'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200844 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57437jason2013-07-091-0/+26
| | | | | | | * typeck.c (check_return_expr): Lambda proxies aren't eligible for nrv or return by move. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200843 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-09 Marc Glisse <marc.glisse@inria.fr>glisse2013-07-091-1/+1
| | | | | | | | | | | | | | PR c++/53094 gcc/cp/ * semantics.c (cxx_eval_bit_field_ref): Handle VECTOR_CST. gcc/testsuite/ * g++.dg/cpp0x/constexpr-53094-1.C: Adjust. * g++.dg/ext/vector24.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200822 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-09 Marc Glisse <marc.glisse@inria.fr>glisse2013-07-091-1/+1
| | | | | | | | | | | | PR c++/53000 gcc/cp/ * call.c (build_conditional_expr_1): Preserve xvalues. gcc/testsuite/ * g++.dg/cpp0x/decltype17.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200821 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-07-091-0/+8
| | | | | | | | | | | | | | | | | 2013-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51786 * parser.c (cp_parser_simple_declaration): Before calling shadow_tag also check declares_class_or_enum. /testsuite 2013-07-09 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51786 * g++.dg/cpp0x/pr51786.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200813 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-07-04 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-07-041-0/+21
| | | | | | | | PR c++/54998 * g++.dg/cpp0x/nsdmi-list3.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200667 138bc75d-0d04-0410-961f-82ee72b054a4
* libcpp:emsr2013-06-291-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-06-28 Ed Smith-Rowland <3dw4rd@verizon.net> * lex.c (lex_raw_string(), lex_string()): Constrain suffixes treated as concatenated literal and macro to just the patterns found in inttypes.h; (is_macro()): New. gcc/cp: 2013-06-28 Ed Smith-Rowland <3dw4rd@verizon.net> * cp-tree.h (UDLIT_OP_ANSI_PREFIX): Remove space. * parser.c (cp_parser_operator()): Parse user-defined string literal as literal operator. gcc/testsuite: 2013-06-28 Ed Smith-Rowland <3dw4rd@verizon.net> * g++.dg/cpp0x/udlit-nospace-neg.C: Adjust. * g++.dg/cpp1y/udlit-enc-prefix-neg.C: New. * g++.dg/cpp1y/udlit-userdef-string.C: New. * g++.dg/cpp1y/complex_literals.h: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200563 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-291-0/+87
| | | | | | | | | | | | | | | | | | 2013-06-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57645 * class.c (deduce_noexcept_on_destructors): Save, set, and restore TYPE_HAS_NONTRIVIAL_DESTRUCTOR (t) around the main loop over the destructors. /testsuite 2013-06-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57645 * g++.dg/cpp0x/noexcept21.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200559 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-281-0/+13
| | | | | | | | | | | | | | | | | 2013-06-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57682 * parser.c (cp_parser_save_member_function_body): Handle correctly curly braces in function-try-block mem-initializers. /testsuite 2013-06-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57682 * g++.dg/cpp0x/initlist73.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200504 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-06-27 Marc Glisse <marc.glisse@inria.fr>glisse2013-06-271-0/+7
| | | | | | | | | | | | | | PR c++/57172 gcc/cp/ * pt.c (more_specialized_fn): If both arguments are references, give priority to an lvalue. gcc/testsuite/ * g++.dg/cpp0x/pr57172.C: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200463 138bc75d-0d04-0410-961f-82ee72b054a4
* DR 1589jason2013-06-271-0/+22
| | | | | | * g++.dg/cpp0x/initlist72.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200451 138bc75d-0d04-0410-961f-82ee72b054a4
* * typeck2.c (store_init_value): Diagnose a non-constantjason2013-06-271-0/+23
| | | | | | initializer for in-class static. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200450 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-06-23 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-06-231-0/+25
| | | | | | | * g++.dg/cpp0x/sfinae47.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200353 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-181-0/+20
| | | | | | | | | | | | | | | | | | 2013-06-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53211 * pt.c (type_dependent_expression_p): Handle an array of unknown bound depending on a variadic parameter. * parser.c (cp_parser_range_for): Revert PR56794 changes. /testsuite 2013-06-18 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53211 * g++.dg/cpp0x/decltype55.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200178 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-141-0/+31
| | | | | | | | | | | | | | | | | | 2013-06-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57599 * rtti.c (build_dynamic_cast_1): In case of cast to an unambiguous accessible base simply forward to build_static_cast. /testsuite 2013-06-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57599 * g++.dg/rtti/dyncast6.C: New. * g++.dg/cpp0x/dyncast1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200088 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-06-10 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-06-101-0/+27
| | | | | | | | PR c++/52440 * g++.dg/cpp0x/pr52440.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199899 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/tschwinge2013-06-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * g++.dg/abi/forced.C: Extend current handling of Linux-based x86 systems to cover all GNU systems. * g++.dg/abi/guard2.C: Likewise. * g++.dg/cpp0x/constexpr-rom.C: Likewise. * g++.dg/eh/sighandle.C: Likewise. * g++.dg/ext/cleanup-10.C: Likewise. * g++.dg/ext/cleanup-11.C: Likewise. * g++.dg/ext/cleanup-8.C: Likewise. * g++.dg/ext/cleanup-9.C: Likewise. * g++.dg/opt/const5.C: Likewise. * g++.dg/opt/life1.C: Likewise. * g++.dg/other/pr39496.C: Likewise. * g++.old-deja/g++.abi/aggregates.C: Likewise. * g++.old-deja/g++.abi/align.C: Likewise. * g++.old-deja/g++.abi/bitfields.C: Likewise. * g++.old-deja/g++.law/weak.C: Likewise. * g++.old-deja/g++.pt/asm1.C: Likewise. * gcc.c-torture/execute/20030125-1.x: Likewise. * gcc.c-torture/execute/990127-2.x: Likewise. * gcc.dg/20041106-1.c: Likewise. * gcc.dg/20050503-1.c: Likewise. * gcc.dg/builtin-object-size-5.c: Likewise. * gcc.dg/cleanup-10.c: Likewise. * gcc.dg/cleanup-11.c: Likewise. * gcc.dg/cleanup-8.c: Likewise. * gcc.dg/cleanup-9.c: Likewise. * gcc.dg/complex-5.c: Likewise. * gcc.dg/debug/dwarf2/asm-line1.c: Likewise. * gcc.dg/debug/dwarf2/discriminator.c: Likewise. * gcc.dg/dfp/convert-dfp-round-thread.c: Likewise. * gcc.dg/dfp/pr35739.c: Likewise. * gcc.dg/fdata-sections-1.c: Likewise. * gcc.dg/lto/20090206-1_0.c: Likewise. * gcc.dg/lto/20090206-2_0.c: Likewise. * gcc.dg/pr30360.c: Likewise. * gcc.dg/pr37303.c: Likewise. * gcc.dg/pr39323-1.c: Likewise. * gcc.dg/pr39323-2.c: Likewise. * gcc.dg/pr39323-3.c: Likewise. * gcc.dg/pr45416.c: Likewise. * gcc.dg/setjmp-2.c: Likewise. * gcc.dg/split-1.c: Likewise. * gcc.dg/split-3.c: Likewise. * gcc.dg/split-4.c: Likewise. * gcc.dg/strlenopt-12g.c: Likewise. * gcc.dg/strlenopt-14g.c: Likewise. * gcc.dg/strlenopt-14gf.c: Likewise. * gcc.dg/strlenopt-16g.c: Likewise. * gcc.dg/strlenopt-17g.c: Likewise. * gcc.dg/strlenopt-18g.c: Likewise. * gcc.dg/strlenopt-1f.c: Likewise. * gcc.dg/strlenopt-22g.c: Likewise. * gcc.dg/strlenopt-2f.c: Likewise. * gcc.dg/strlenopt-4g.c: Likewise. * gcc.dg/strlenopt-4gf.c: Likewise. * gcc.dg/struct-ret-3.c: Likewise. * gcc.dg/torture/stackalign/setjmp-2.c: Likewise. * gcc.misc-tests/linkage.exp: Likewise. * gcc.target/i386/20000724-1.c: Likewise. * gcc.target/i386/align-main-3.c: Likewise. * gcc.target/i386/cleanup-1.c: Likewise. * gcc.target/i386/inline-mcpy.c: Likewise. * gcc.target/i386/pr32268.c: Likewise. * gcc.target/i386/pr36613.c: Likewise. * gcc.target/i386/pr39013-1.c: Likewise. * gcc.target/i386/pr39013-2.c: Likewise. * gcc.target/i386/pr39496.c: Likewise. * gcc.target/i386/pr40906-3.c: Likewise. * gcc.target/i386/pr46084.c: Likewise. * lib/target-supports.exp (check_effective_target_pie): Likewise. libgomp/ * testsuite/libgomp.c/icv-2.c: Extend current handling of Linux-based x86 systems to cover all GNU systems. * testsuite/libgomp.c/lock-3.c: Likewise. * testsuite/libgomp.c/pr48591.c: Likewise. libstdc++-v3/ * testsuite/17_intro/headers/c++1998/49745.cc: Extend current handling of Linux-based x86 systems to cover all GNU systems. * testsuite/18_support/bad_exception/23591_thread-1.c: Likewise. * testsuite/18_support/pthread_guard.cc: Likewise. * testsuite/20_util/shared_ptr/thread/default_weaktoshared.cc: Likewise. * testsuite/20_util/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. * testsuite/21_strings/basic_string/pthread18185.cc: Likewise. * testsuite/21_strings/basic_string/pthread4.cc: Likewise. * testsuite/22_locale/ctype/is/char/2.cc: Likewise. * testsuite/22_locale/ctype/is/wchar_t/2.cc: Likewise. * testsuite/22_locale/locale/cons/12658_thread-1.cc: Likewise. * testsuite/22_locale/locale/cons/12658_thread-2.cc: Likewise. * testsuite/23_containers/list/pthread1.cc: Likewise. * testsuite/23_containers/list/pthread5.cc: Likewise. * testsuite/23_containers/map/pthread6.cc: Likewise. * testsuite/23_containers/vector/debug/multithreaded_swap.cc: Likewise. * testsuite/26_numerics/headers/cmath/c99_classification_macros_c.cc: Likewise. * testsuite/27_io/basic_ofstream/pthread2.cc: Likewise. * testsuite/27_io/basic_ostringstream/pthread3.cc: Likewise. * testsuite/30_threads/async/42819.cc: Likewise. * testsuite/30_threads/async/49668.cc: Likewise. * testsuite/30_threads/async/54297.cc: Likewise. * testsuite/30_threads/async/any.cc: Likewise. * testsuite/30_threads/async/async.cc: Likewise. * testsuite/30_threads/async/launch.cc: Likewise. * testsuite/30_threads/async/sync.cc: Likewise. * testsuite/30_threads/call_once/39909.cc: Likewise. * testsuite/30_threads/call_once/49668.cc: Likewise. * testsuite/30_threads/call_once/call_once1.cc: Likewise. * testsuite/30_threads/condition_variable/54185.cc: Likewise. * testsuite/30_threads/condition_variable/cons/1.cc: Likewise. * testsuite/30_threads/condition_variable/members/1.cc: Likewise. * testsuite/30_threads/condition_variable/members/2.cc: Likewise. * testsuite/30_threads/condition_variable/members/53841.cc: Likewise. * testsuite/30_threads/condition_variable/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/condition_variable_any/50862.cc: Likewise. * testsuite/30_threads/condition_variable_any/53830.cc: Likewise. * testsuite/30_threads/condition_variable_any/cons/1.cc: Likewise. * testsuite/30_threads/condition_variable_any/members/1.cc: Likewise. * testsuite/30_threads/condition_variable_any/members/2.cc: Likewise. * testsuite/30_threads/future/cons/move.cc: Likewise. * testsuite/30_threads/future/members/45133.cc: Likewise. * testsuite/30_threads/future/members/get.cc: Likewise. * testsuite/30_threads/future/members/get2.cc: Likewise. * testsuite/30_threads/future/members/share.cc: Likewise. * testsuite/30_threads/future/members/valid.cc: Likewise. * testsuite/30_threads/future/members/wait.cc: Likewise. * testsuite/30_threads/future/members/wait_for.cc: Likewise. * testsuite/30_threads/future/members/wait_until.cc: Likewise. * testsuite/30_threads/lock/1.cc: Likewise. * testsuite/30_threads/lock/2.cc: Likewise. * testsuite/30_threads/lock/3.cc: Likewise. * testsuite/30_threads/lock/4.cc: Likewise. * testsuite/30_threads/mutex/cons/1.cc: Likewise. * testsuite/30_threads/mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/mutex/lock/1.cc: Likewise. * testsuite/30_threads/mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/mutex/unlock/1.cc: Likewise. * testsuite/30_threads/packaged_task/49668.cc: Likewise. * testsuite/30_threads/packaged_task/cons/1.cc: Likewise. * testsuite/30_threads/packaged_task/cons/2.cc: Likewise. * testsuite/30_threads/packaged_task/cons/3.cc: Likewise. * testsuite/30_threads/packaged_task/cons/56492.cc: Likewise. * testsuite/30_threads/packaged_task/cons/alloc.cc: Likewise. * testsuite/30_threads/packaged_task/cons/move.cc: Likewise. * testsuite/30_threads/packaged_task/cons/move_assign.cc: Likewise. * testsuite/30_threads/packaged_task/members/get_future.cc: Likewise. * testsuite/30_threads/packaged_task/members/get_future2.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke2.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke3.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke4.cc: Likewise. * testsuite/30_threads/packaged_task/members/invoke5.cc: Likewise. * testsuite/30_threads/packaged_task/members/reset.cc: Likewise. * testsuite/30_threads/packaged_task/members/reset2.cc: Likewise. * testsuite/30_threads/packaged_task/members/swap.cc: Likewise. * testsuite/30_threads/packaged_task/members/valid.cc: Likewise. * testsuite/30_threads/promise/cons/1.cc: Likewise. * testsuite/30_threads/promise/cons/alloc.cc: Likewise. * testsuite/30_threads/promise/cons/move.cc: Likewise. * testsuite/30_threads/promise/cons/move_assign.cc: Likewise. * testsuite/30_threads/promise/members/get_future.cc: Likewise. * testsuite/30_threads/promise/members/get_future2.cc: Likewise. * testsuite/30_threads/promise/members/set_exception.cc: Likewise. * testsuite/30_threads/promise/members/set_exception2.cc: Likewise. * testsuite/30_threads/promise/members/set_value.cc: Likewise. * testsuite/30_threads/promise/members/set_value2.cc: Likewise. * testsuite/30_threads/promise/members/set_value3.cc: Likewise. * testsuite/30_threads/promise/members/swap.cc: Likewise. * testsuite/30_threads/recursive_mutex/cons/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/recursive_mutex/lock/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/recursive_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/recursive_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/recursive_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/recursive_timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/shared_future/cons/move.cc: Likewise. * testsuite/30_threads/shared_future/members/45133.cc: Likewise. * testsuite/30_threads/shared_future/members/get.cc: Likewise. * testsuite/30_threads/shared_future/members/get2.cc: Likewise. * testsuite/30_threads/shared_future/members/valid.cc: Likewise. * testsuite/30_threads/shared_future/members/wait.cc: Likewise. * testsuite/30_threads/shared_future/members/wait_for.cc: Likewise. * testsuite/30_threads/shared_future/members/wait_until.cc: Likewise. * testsuite/30_threads/this_thread/1.cc: Likewise. * testsuite/30_threads/this_thread/2.cc: Likewise. * testsuite/30_threads/this_thread/3.cc: Likewise. * testsuite/30_threads/this_thread/4.cc: Likewise. * testsuite/30_threads/thread/cons/1.cc: Likewise. * testsuite/30_threads/thread/cons/2.cc: Likewise. * testsuite/30_threads/thread/cons/3.cc: Likewise. * testsuite/30_threads/thread/cons/4.cc: Likewise. * testsuite/30_threads/thread/cons/49668.cc: Likewise. * testsuite/30_threads/thread/cons/5.cc: Likewise. * testsuite/30_threads/thread/cons/6.cc: Likewise. * testsuite/30_threads/thread/cons/7.cc: Likewise. * testsuite/30_threads/thread/cons/8.cc: Likewise. * testsuite/30_threads/thread/cons/9.cc: Likewise. * testsuite/30_threads/thread/cons/moveable.cc: Likewise. * testsuite/30_threads/thread/members/1.cc: Likewise. * testsuite/30_threads/thread/members/2.cc: Likewise. * testsuite/30_threads/thread/members/3.cc: Likewise. * testsuite/30_threads/thread/members/4.cc: Likewise. * testsuite/30_threads/thread/members/5.cc: Likewise. * testsuite/30_threads/thread/members/hardware_concurrency.cc: Likewise. * testsuite/30_threads/thread/native_handle/cancel.cc: Likewise. * testsuite/30_threads/thread/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/thread/swap/1.cc: Likewise. * testsuite/30_threads/timed_mutex/cons/1.cc: Likewise. * testsuite/30_threads/timed_mutex/dest/destructor_locked.cc: Likewise. * testsuite/30_threads/timed_mutex/lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/1.cc: Likewise. * testsuite/30_threads/timed_mutex/native_handle/typesizes.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/2.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_for/3.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/1.cc: Likewise. * testsuite/30_threads/timed_mutex/try_lock_until/2.cc: Likewise. * testsuite/30_threads/timed_mutex/unlock/1.cc: Likewise. * testsuite/30_threads/try_lock/1.cc: Likewise. * testsuite/30_threads/try_lock/2.cc: Likewise. * testsuite/30_threads/try_lock/3.cc: Likewise. * testsuite/30_threads/try_lock/4.cc: Likewise. * testsuite/30_threads/unique_lock/cons/1.cc: Likewise. * testsuite/30_threads/unique_lock/cons/2.cc: Likewise. * testsuite/30_threads/unique_lock/cons/3.cc: Likewise. * testsuite/30_threads/unique_lock/cons/4.cc: Likewise. * testsuite/30_threads/unique_lock/cons/5.cc: Likewise. * testsuite/30_threads/unique_lock/cons/6.cc: Likewise. * testsuite/30_threads/unique_lock/locking/1.cc: Likewise. * testsuite/30_threads/unique_lock/locking/2.cc: Likewise. * testsuite/30_threads/unique_lock/locking/3.cc: Likewise. * testsuite/30_threads/unique_lock/locking/4.cc: Likewise. * testsuite/30_threads/unique_lock/modifiers/1.cc: Likewise. * testsuite/30_threads/unique_lock/modifiers/2.cc: Likewise. * testsuite/ext/mt_allocator/22309_thread.cc: Likewise. * testsuite/ext/profile/mh.cc: Likewise. * testsuite/ext/rope/pthread7-rope.cc: Likewise. * testsuite/lib/libstdc++.exp (libstdc++_init): Likewise. * testsuite/tr1/2_general_utilities/shared_ptr/thread/default_weaktoshared.cc: Likewise. * testsuite/tr1/2_general_utilities/shared_ptr/thread/mutex_weaktoshared.cc: Likewise. * testsuite/util/testsuite_performance.h: Extend current handling of Linux-based systems to cover all glibc-based systems. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199880 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-071-0/+6
| | | | | | | | | | | | | | | | | 2013-06-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53658 * pt.c (lookup_template_class_1): Consistently use TYPE_MAIN_DECL, not TYPE_STUB_DECL, to access the _DECL for a _TYPE. /testsuite 2013-06-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53658 * g++.dg/cpp0x/alias-decl-36.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199793 138bc75d-0d04-0410-961f-82ee72b054a4
* * decl.c (grokdeclarator): Keep a decl with error type.jason2013-06-071-2/+2
| | | | | | | | | | (grokfield, grokbitfield): Likewise. * pt.c (instantiate_class_template_1): Likewise. (tsubst_decl): Drop redundant error. * class.c (walk_subobject_offsets): Handle erroneous fields. * typeck2.c (process_init_constructor_record): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199779 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-06-051-0/+26
| | | | | | | | | | | | | | | | | 2013-06-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51908 * parser.c (cp_parser_postfix_expression [RID_*CAST]): Set parser->in_type_id_in_expr_p before calling cp_parser_type_id. /testsuite 2013-06-05 Paolo Carlini <paolo.carlini@oracle.com> PR c++/51908 * g++.dg/cpp0x/decltype54.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199707 138bc75d-0d04-0410-961f-82ee72b054a4
* /gcc/cppaolo2013-06-0315-15/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2013-06-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57419 * decl2.c (mark_used): Add overload taking a tsubst_flags_t too. * semantics.c (finish_qualified_id_expr): Use it. * cp-tree.h: Update. /gcc/testsuite 2013-06-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57419 * g++.dg/cpp0x/sfinae46.C: New. * g++.dg/cpp0x/defaulted13.C: Adjust. * g++.dg/cpp0x/defaulted2.C: Likewise. * g++.dg/cpp0x/defaulted26.C: Likewise. * g++.dg/cpp0x/defaulted3.C: Likewise. * g++.dg/cpp0x/error1.C: Likewise. * g++.dg/cpp0x/implicit1.C: Likewise. * g++.dg/cpp0x/implicit11.C: Likewise. * g++.dg/cpp0x/inh-ctor13.C: Likewise. * g++.dg/cpp0x/initlist47.C: Likewise. * g++.dg/cpp0x/initlist9.C: Likewise. * g++.dg/cpp0x/lambda/lambda-errloc.C: Likewise. * g++.dg/cpp0x/lambda/lambda-errloc2.C: Likewise. * g++.dg/cpp0x/nsdmi-local.C: Likewise. * g++.dg/cpp0x/union4.C: Likewise. * g++.dg/template/crash108.C: Likewise. * g++.dg/template/crash41.C: Likewise. * g++.old-deja/g++.jason/local.C: Likewise. * g++.old-deja/g++.law/visibility3.C: Likewise. /libstdc++-v3 2013-06-03 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57419 * testsuite/20_util/default_delete/48631_neg.cc: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199626 138bc75d-0d04-0410-961f-82ee72b054a4
* fix nsdmi-union2.Cjason2013-05-311-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199541 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/52377jason2013-05-302-0/+43
| | | | | | | | | * class.c (common_enclosing_class): New. * cp-tree.h: Declare it. * init.c (sort_mem_initializers): Don't splice out a union member with an NSDMI. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199455 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/testsuite/yufeng2013-05-301-1/+1
| | | | | | | | * g++.dg/cpp0x/alias-decl-debug-0.C: Add aarch64*-*-* to the dg-skip-if "No stabs". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199452 138bc75d-0d04-0410-961f-82ee72b054a4
* 2013-05-25 Paolo Carlini <paolo.carlini@oracle.com>paolo2013-05-251-0/+8
| | | | | | | | PR c++/52216 * g++.dg/cpp0x/new1.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199326 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57388jason2013-05-231-0/+29
| | | | | | | * tree.c (build_ref_qualified_type): Clear FUNCTION_RVALUE_QUALIFIED for lvalue ref-qualifier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199269 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56930jason2013-05-231-0/+10
| | | | | | | | | * call.c (convert_like_real): Use cp_convert_and_check. * cvt.c (cp_convert_and_check): Use maybe_constant_value. * semantics.c (cxx_eval_constant_expression): Handle LTGT_EXPR. (potential_constant_expression_1): Handle OMP_ATOMIC*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199232 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56915jason2013-05-231-0/+25
| | | | | | | * semantics.c (maybe_add_lambda_conv_op): Give up if the call op isn't defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199231 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-05-221-0/+23
| | | | | | | | | | | | | | | | | 2013-05-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57211 * method.c (defaultable_fn_check): Avoid do_warn_unused_parameter warnings about defaulted functions. /testsuite 2013-05-22 Paolo Carlini <paolo.carlini@oracle.com> PR c++/57211 * g++.dg/cpp0x/Wunused-parm.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199189 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-05-211-4/+3
| | | | | | | | | | | | | | | | | | | | | 2013-05-21 Paolo Carlini <paolo.carlini@oracle.com> * call.c (build_conditional_expr_1): Add location_t parameter. (build_conditional_expr): Likewise. * typeck.c (rationalize_conditional_expr, cp_build_array_ref, get_member_function_from_ptrfunc, build_x_conditional_expr, cp_build_modify_expr): Update. * init.c (build_new_1): Likewise. * cp-tree.h: Update declaration. /testsuite 2013-05-21 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/explicit3.C: Add column in dg-error strings. * g++.dg/warn/Wdouble-promotion.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199166 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57016jason2013-05-201-0/+133
| | | | | | | * pt.c (instantiation_dependent_r) [TRAIT_EXPR]: Only check type2 if there is one. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199126 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57319jason2013-05-201-0/+24
| | | | | | | | * class.c (vbase_has_user_provided_move_assign): New. * method.c (synthesized_method_walk): Check it. * cp-tree.h: Declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199114 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57279jason2013-05-161-0/+9
| | | | | | | * decl.c (grokdeclarator): Allow member function qualifiers in TYPENAME context. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198975 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/56782 - Regression with empty pack expansionsdodji2013-05-161-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the example of the patch below, during the instantiation of is_convertible at #1, we see at some point Tuple<>. (Let's note '{}' an empty argument pack.) In that context, during the partial specialization the member template template<class... U> Tuple<>::Tuple<U, typename enable_if<and_<is_convertible<U, {}>... >::value, int >::type > Let's look at what happens to the expansion "is_convertible<U, {}>...." To express the result of that expansion tsubst_pack_expansion receives the expansion is_convertible<U, T>, with the argument list [{}]. This function should detect that we have an empty argument pack for the parameter pack T and no argument pack for the parameter pack U. It should thus return a pack expansion "is_convertible<U,T>..." that has this information: "I have gotten an argument list, that is not complete because U doesn't have any argument pack; the argument pack for T is '{}', so I'll wait for the next time I am passed to tsubst_pack_expansion with enough additional argument packs, to really perform the substitution". That information is conveyed by attaching the the '{}' to the PACK_EXPANSION_EXTRA property of the pack expansion returned by tsubst_pack_expansion. The problem in this report is that we are not setting PACK_EXPANSION_EXTRA when the non-complete argument pack list is made of an empty argument pack, because use_pack_expansion_extra_args_p doesn't detect this case. Fixed thus. gcc/cp/ * pt.c (use_pack_expansion_extra_args_p): When at least a parameter pack has an empty argument pack, and another parameter pack has no argument pack at all, use the PACK_EXPANSION_EXTRA mechanism. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198956 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | 2013-05-15 Paolo Carlini <paolo.carlini@oracle.com> * name-lookup.c (pushdecl_maybe_friend_1): Replace pairs of warning_at and permerror with warning_at/inform and permerror/ inform, respectively. /testsuite 2013-05-15 Paolo Carlini <paolo.carlini@oracle.com> * g++.dg/cpp0x/lambda/lambda-shadow1.C: Replace dg-warnings with dg-messages. * g++.dg/warn/Wshadow-1.C: Likewise. * g++.dg/warn/Wshadow-6.C: Likewise. * g++.dg/warn/Wshadow-7.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198943 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-05-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | 2013-05-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/31952 * name-lookup.c (pushdecl_maybe_friend_1): Diagnose illegal redeclarations. /testsuite 2013-05-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/31952 * g++.dg/parse/pr31952-1.C: New. * g++.dg/parse/pr31952-2.C: Likewise. * g++.dg/parse/pr31952-3.C: Likewise. * g++.dg/parse/pr18770.C: Adjust dg-errors to dg-messages. * g++.old-deja/g++.jason/cond.C: Likewise. * g++.dg/cpp0x/range-for5.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198939 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/57243jason2013-05-141-0/+30
| | | | | | * parser.c (cp_parser_range_for): Call complete_type. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198901 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2013-05-141-0/+50
| | | | | | | | | | | | | | | | | 2013-05-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53903 * method.c (defaulted_late_check): Check for compatible exception specification out of class explicitly defaulted functions too. /testsuite 2013-05-14 Paolo Carlini <paolo.carlini@oracle.com> PR c++/53903 * g++.dg/cpp0x/defaulted43.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@198886 138bc75d-0d04-0410-961f-82ee72b054a4
OpenPOWER on IntegriCloud