summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja
Commit message (Collapse)AuthorAgeFilesLines
* * g++.old-deja/g++.brendan/README: Add R.I.P.jason2011-08-161-0/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177812 138bc75d-0d04-0410-961f-82ee72b054a4
* Propagate the source location of a template's function_decl to thejyasskin2011-07-271-2/+2
| | | | | | | | | | | | | | | template_decl built out of it. Without this, specializations generated before the template was defined get the location of the closing ')' instead of the location of the template's name, which can produce inconsistent locations between translation units, which makes gold's ODR checker unhappy. * gcc/cp/pt.c (build_template_decl): Copy the function_decl's source location to the new template_decl. * gcc/testsuite/g++.old-deja/g++.pt/crash60.C: Updated. * libstdc++-v3/testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Updated. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176845 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/45329jason2011-07-1713-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/48934 * cp-tree.h (fn_type_unification): Add `bool' parameter. * pt.c (enum template_base_result): Define. (unify_success, unify_unknown): Define. (unify_parameter_deduction_failure): Define. (unify_invalid, unify_cv_qual_mismatch, unify_type_mismatch): Define. (unify_parameter_pack_mismatch): Define. (unify_parameter_pack_inconsistent): Define. (unify_ptrmem_cst_mismatch, unify_vla_arg): Define. (unify_expression_unequal, unify_inconsistency): Define. (unify_method_type_error, unify_arity): Likewise. (unify_too_many_parameters, unify_too_few_parameters): Define. (unify_arg_conversion, unify_no_common_base): Define. (unify_illformed_ptrmem_cst_expr): Define. (unify_substitution_failure): Define. (unify_inconsistent_template_template_parameters): Define. (unify_template_deduction_failure): Define. (unify_template_argument_mismatch): Define. (unify_overload_resolution_failure): Define. (comp_template_args_with_info): New function, split out from... (comp_template_args): ...here. Call it. (deduction_tsubst_fntype): Add `complain' parameter'. Pass it to tsubst. (unify): Add `explain_p' parameter. Pass to all relevant calls. Call above status functions when appropriate. (resolve_overloaded_unification, try_one_overload): Likewise. (type_unification, type_unification_real): Likewise. (unify_pack_expansion): Likewise. (get_template_base, try_class_unification): Likewise. (get_bindings, more_specialized_fn): Pass false to unification calls. (get_class_bindings, do_auto_deduction): Likewise. (convert_nontype_argument): Likewise. (fn_type_unification): Likewise. Pass tf_warning_or_error if explain_p. (get_template_base): Add `explain_p' parameter and pass it to try_class_unification. Return an enum template_base_result. * class.c (resolve_address_of_overloaded_function): Pass false to fn_type_unification. * call.c (enum rejection_reason_code): Add new codes. (struct rejection_reason): Add template_unification field. Add template_instantiation field. (template_unification_rejection): Define. (template_unification_error_rejection): Define. (template_instantiation_rejection): Define. (invalid_copy_with_fn_template_rejection): Define. (add_template_candidate): Pass false to unify. Provide more rejection reasons when possible. (print_template_unification_rejection): Define. (print_arity_rejection): Define, split out from... (print_z_candidate): ...here. Add cases for new rejection reasons. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176365 138bc75d-0d04-0410-961f-82ee72b054a4
* Also test -std=c++0x mode with 'make check-c++' at top leveljason2011-07-132-2/+3
| | | | | | | | | | | | | | | * Makefile.in (check-gcc-c++0x): New. (check-c++): Depend on it. gcc/ * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts. gcc/cp/ * Make-lang.in (check-c++0x): New. gcc/testsuite/ * lib/g++.exp (${tool}_option_help, ${tool}_option_proc): Remove. * lib/lto.exp (lto_prune_warns): Prune warning about -std=c++0x when compiling C files. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176250 138bc75d-0d04-0410-961f-82ee72b054a4
* Add x32 support to GCC testsuite.hjl2011-07-094-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-07-09 H.J. Lu <hongjiu.lu@intel.com> * c-c++-common/dfp/func-vararg-alternate-d128-2.c: Support x32. * c-c++-common/dfp/func-vararg-mixed-2.c: Likewise. * g++.dg/abi/bitfield3.C: Likewise. * g++.dg/eh/pr38662.C: Likewise. * g++.dg/ext/attrib36.C: Likewise. * g++.dg/ext/attrib37.C: Likewise. * g++.dg/ext/attrib8.C: Likewise. * g++.dg/ext/tmplattr1.C: Likewise. * g++.dg/inherit/override-attribs.C: Likewise. * g++.dg/opt/inline9.C: Likewise. * g++.dg/opt/life1.C: Likewise. * g++.dg/opt/longbranch2.C: Likewise. * g++.dg/opt/nrv12.C: Likewise. * g++.dg/opt/reg-stack4.C: Likewise. * g++.dg/other/pr35504.C: Likewise. * g++.dg/other/pr39496.C: Likewise. * g++.dg/torture/stackalign/eh-fastcall-1.C: Likewise. * g++.dg/torture/stackalign/eh-thiscall-1.C: Likewise. * g++.dg/torture/stackalign/stdcall-1.C: Likewise. * g++.dg/torture/stackalign/unwind-0.C: Likewise. * g++.dg/torture/stackalign/unwind-1.C: Likewise. * g++.dg/torture/stackalign/unwind-2.C: Likewise. * g++.dg/torture/stackalign/unwind-3.C: Likewise. * g++.dg/torture/stackalign/unwind-4.C: Likewise. * g++.dg/torture/stackalign/unwind-5.C: Likewise. * g++.dg/torture/stackalign/unwind-6.C: Likewise. * g++.dg/warn/pr15774-1.C: Likewise. * g++.dg/warn/pr15774-2.C: Likewise. * g++.old-deja/g++.ext/attrib1.C: Likewise. * g++.old-deja/g++.ext/attrib2.C: Likewise. * g++.old-deja/g++.ext/attrib3.C: Likewise. * g++.old-deja/g++.pt/asm2.C: Likewise. * gcc.c-torture/compile/20000804-1.c: Likewise. * gcc.c-torture/compile/pr16566-2.c: Likewise. * gcc.c-torture/execute/ieee/ieee.exp: Likewise. * gcc.dg/20020108-1.c: Likewise. * gcc.dg/20020122-2.c: Likewise. * gcc.dg/20020122-3.c: Likewise. * gcc.dg/20020206-1.c: Likewise. * gcc.dg/20020219-1.c: Likewise. * gcc.dg/20020310-1.c: Likewise. * gcc.dg/20020411-1.c: Likewise. * gcc.dg/20020418-2.c: Likewise. * gcc.dg/20020426-2.c: Likewise. * gcc.dg/20020517-1.c: Likewise. * gcc.dg/20030204-1.c: Likewise. * gcc.dg/20030826-2.c: Likewise. * gcc.dg/20031102-1.c: Likewise. * gcc.dg/20031202-1.c: Likewise. * gcc.dg/20050111-1.c: Likewise. * gcc.dg/20050503-1.c: Likewise. * gcc.dg/array-init-1.c: Likewise. * gcc.dg/builtin-apply4.c: Likewise. * gcc.dg/dfp/pr31344.c: Likewise. * gcc.dg/gomp/atomic-11.c: Likewise. * gcc.dg/graphite/pr40281.c: Likewise. * gcc.dg/ia64-sync-1.c: Likewise. * gcc.dg/ia64-sync-2.c: Likewise. * gcc.dg/ia64-sync-3.c: Likewise. * gcc.dg/ia64-sync-4.c: Likewise. * gcc.dg/ifcvt-fabs-1.c: Likewise. * gcc.dg/invalid-call-1.c: Likewise. * gcc.dg/loop-3.c: Likewise. * gcc.dg/lower-subreg-1.c: Likewise. * gcc.dg/lto/pr47259_0.c: Likewise. * gcc.dg/nested-calls-1.c: Likewise. * gcc.dg/pr20017.c: Likewise. * gcc.dg/pr25023.c: Likewise. * gcc.dg/pr27671-2.c: Likewise. * gcc.dg/pr32176.c: Likewise. * gcc.dg/pr33676.c: Likewise. * gcc.dg/pr35045.c: Likewise. * gcc.dg/pr36015.c: Likewise. * gcc.dg/pr36584.c: Likewise. * gcc.dg/pr36998.c: Likewise. * gcc.dg/pr37438.c: Likewise. * gcc.dg/pr37908.c: Likewise. * gcc.dg/pr41241.c: Likewise. * gcc.dg/pr41340.c: Likewise. * gcc.dg/pr44136.c: Likewise. * gcc.dg/pr44194-1.c: Likewise. * gcc.dg/pr46212.c: Likewise. * gcc.dg/prefetch-loop-arrays-1.c: Likewise. * gcc.dg/setjmp-2.c: Likewise. * gcc.dg/short-compare-1.c: Likewise. * gcc.dg/short-compare-2.c: Likewise. * gcc.dg/smod-1.c: Likewise. * gcc.dg/sync-2.c: Likewise. * gcc.dg/sync-3.c: Likewise. * gcc.dg/tls/opt-1.c: Likewise. * gcc.dg/tls/opt-2.c: Likewise. * gcc.dg/tls/opt-3.c: Likewise. * gcc.dg/torture/badshift.c: Likewise. * gcc.dg/torture/fp-int-convert-float80-timode.c: Likewise. * gcc.dg/torture/pr20314-2.c: Likewise. * gcc.dg/torture/pr36891.c: Likewise. * gcc.dg/torture/pr38774.c: Likewise. * gcc.dg/torture/stackalign/alloca-2.c: Likewise. * gcc.dg/torture/stackalign/alloca-4.c: Likewise. * gcc.dg/torture/stackalign/alloca-5.c: Likewise. * gcc.dg/torture/stackalign/alloca-6.c: Likewise. * gcc.dg/torture/stackalign/fastcall-1.c: Likewise. * gcc.dg/torture/stackalign/push-1.c: Likewise. * gcc.dg/torture/stackalign/regparm-1.c: Likewise. * gcc.dg/torture/stackalign/thiscall-1.c: Likewise. * gcc.dg/tree-ssa/loop-28.c: Likewise. * gcc.dg/tree-ssa/prefetch-3.c: Likewise. * gcc.dg/tree-ssa/prefetch-4.c: Likewise. * gcc.dg/tree-ssa/prefetch-5.c: Likewise. * gcc.dg/tree-ssa/prefetch-6.c: Likewise. * gcc.dg/tree-ssa/prefetch-7.c: Likewise. * gcc.dg/tree-ssa/prefetch-8.c: Likewise. * gcc.dg/tree-ssa/prefetch-9.c: Likewise. * gcc.dg/tree-ssa/stdarg-2.c: Likewise. * gcc.dg/tree-ssa/stdarg-3.c: Likewise. * gcc.dg/tree-ssa/stdarg-4.c: Likewise. * gcc.dg/tree-ssa/stdarg-5.c: Likewise. * gcc.dg/tree-ssa/update-unroll-1.c: Likewise. * gcc.dg/unroll-1.c: Likewise. * gcc.dg/vect/costmodel/x86_64/x86_64-costmodel-vect.exp: Likewise. * gcc.misc-tests/i386-pf-3dnow-1.c: Likewise. * gcc.misc-tests/i386-pf-athlon-1.c: Likewise. * gcc.misc-tests/i386-pf-none-1.c: Likewise. * gcc.misc-tests/i386-pf-sse-1.c: Likewise. * gcc.target/i386/20000609-1.c: Likewise. * gcc.target/i386/20000720-1.c: Likewise. * gcc.target/i386/20000724-1.c: Likewise. * gcc.target/i386/20011107-1.c: Likewise. * gcc.target/i386/20011119-1.c: Likewise. * gcc.target/i386/20020201-3.c: Likewise. * gcc.target/i386/20020218-1.c: Likewise. * gcc.target/i386/20020729-1.c: Likewise. * gcc.target/i386/20030926-1.c: Likewise. * gcc.target/i386/20060125-1.c: Likewise. * gcc.target/i386/20060125-2.c: Likewise. * gcc.target/i386/20060512-1.c: Likewise. * gcc.target/i386/20060512-2.c: Likewise. * gcc.target/i386/20060512-3.c: Likewise. * gcc.target/i386/20060512-4.c: Likewise. * gcc.target/i386/387-1.c: Likewise. * gcc.target/i386/387-2.c: Likewise. * gcc.target/i386/387-5.c: Likewise. * gcc.target/i386/387-6.c: Likewise. * gcc.target/i386/980312-1.c: Likewise. * gcc.target/i386/980313-1.c: Likewise. * gcc.target/i386/990117-1.c: Likewise. * gcc.target/i386/990424-1.c: Likewise. * gcc.target/i386/990524-1.c: Likewise. * gcc.target/i386/991129-1.c: Likewise. * gcc.target/i386/991214-1.c: Likewise. * gcc.target/i386/991230-1.c: Likewise. * gcc.target/i386/addr-sel-1.c: Likewise. * gcc.target/i386/aggregate-ret1.c: Likewise. * gcc.target/i386/aggregate-ret2.c: Likewise. * gcc.target/i386/align-main-3.c: Likewise. * gcc.target/i386/amd64-abi-1.c: Likewise. * gcc.target/i386/amd64-abi-2.c: Likewise. * gcc.target/i386/amd64-abi-4.c: Likewise. * gcc.target/i386/amd64-abi-5.c: Likewise. * gcc.target/i386/amd64-abi-6.c: Likewise. * gcc.target/i386/asm-1.c: Likewise. * gcc.target/i386/asm-3.c: Likewise. * gcc.target/i386/asm-5.c: Likewise. * gcc.target/i386/attributes-error.c: Likewise. * gcc.target/i386/avx-vcvtsd2si-2.c: Likewise. * gcc.target/i386/avx-vcvtsi2sd-2.c: Likewise. * gcc.target/i386/avx-vcvtsi2ss-2.c: Likewise. * gcc.target/i386/avx-vcvtss2si-2.c: Likewise. * gcc.target/i386/avx-vcvttsd2si-2.c: Likewise. * gcc.target/i386/avx-vcvttss2si-2.c: Likewise. * gcc.target/i386/avx-vinsertps-3.c: Likewise. * gcc.target/i386/avx-vmovd-2.c: Likewise. * gcc.target/i386/avx-vmovq-2.c: Likewise. * gcc.target/i386/avx-vmovq-3.c: Likewise. * gcc.target/i386/avx-vpextrq-1.c: Likewise. * gcc.target/i386/avx-vpinsrq-1.c: Likewise. * gcc.target/i386/avx-vzeroupper-16.c: Likewise. * gcc.target/i386/avx-vzeroupper-17.c: Likewise. * gcc.target/i386/avx-vzeroupper-18.c: Likewise. * gcc.target/i386/bitfield1.c: Likewise. * gcc.target/i386/bitfield2.c: Likewise. * gcc.target/i386/bmi-2.c: Likewise. * gcc.target/i386/bmi-5.c: Likewise. * gcc.target/i386/builtin-unreachable.c: Likewise. * gcc.target/i386/cleanup-2.c: Likewise. * gcc.target/i386/clobbers.c: Likewise. * gcc.target/i386/cmov8.c: Likewise. * gcc.target/i386/cmpxchg16b-1.c: Likewise. * gcc.target/i386/compress-float-387-pic.c: Likewise. * gcc.target/i386/compress-float-387.c: Likewise. * gcc.target/i386/compress-float-sse-pic.c: Likewise. * gcc.target/i386/compress-float-sse.c: Likewise. * gcc.target/i386/crc32-2.c: Likewise. * gcc.target/i386/crc32-3.c: Likewise. * gcc.target/i386/divmod-7.c: Likewise. * gcc.target/i386/divmod-8.c: Likewise. * gcc.target/i386/fastcall-sseregparm.c: Likewise. * gcc.target/i386/fma3-builtin.c: Likewise. * gcc.target/i386/fma3-fma.c: Likewise. * gcc.target/i386/fma4-256-vector.c: Likewise. * gcc.target/i386/fma4-builtin.c: Likewise. * gcc.target/i386/fma4-fma-2.c: Likewise. * gcc.target/i386/fma4-fma.c: Likewise. * gcc.target/i386/fma4-vector-2.c: Likewise. * gcc.target/i386/fma4-vector.c: Likewise. * gcc.target/i386/funcspec-1.c: Likewise. * gcc.target/i386/funcspec-10.c: Likewise. * gcc.target/i386/funcspec-11.c: Likewise. * gcc.target/i386/funcspec-2.c: Likewise. * gcc.target/i386/funcspec-5.c: Likewise. * gcc.target/i386/funcspec-6.c: Likewise. * gcc.target/i386/gcc-have-sync-compare-and-swap-1.c: Likewise. * gcc.target/i386/gcc-have-sync-compare-and-swap-2.c: Likewise. * gcc.target/i386/gcc-have-sync-compare-and-swap-3.c: Likewise. * gcc.target/i386/gcc-have-sync-compare-and-swap-4.c: Likewise. * gcc.target/i386/incoming-1.c: Likewise. * gcc.target/i386/incoming-10.c: Likewise. * gcc.target/i386/incoming-11.c: Likewise. * gcc.target/i386/incoming-12.c: Likewise. * gcc.target/i386/incoming-13.c: Likewise. * gcc.target/i386/incoming-14.c: Likewise. * gcc.target/i386/incoming-15.c: Likewise. * gcc.target/i386/incoming-2.c: Likewise. * gcc.target/i386/incoming-3.c: Likewise. * gcc.target/i386/incoming-4.c: Likewise. * gcc.target/i386/incoming-5.c: Likewise. * gcc.target/i386/incoming-6.c: Likewise. * gcc.target/i386/incoming-7.c: Likewise. * gcc.target/i386/incoming-8.c: Likewise. * gcc.target/i386/incoming-9.c: Likewise. * gcc.target/i386/lea.c: Likewise. * gcc.target/i386/local.c: Likewise. * gcc.target/i386/loop-1.c: Likewise. * gcc.target/i386/loop-2.c: Likewise. * gcc.target/i386/loop-3.c: Likewise. * gcc.target/i386/max-stack-align.c: Likewise. * gcc.target/i386/memcpy-1.c: Likewise. * gcc.target/i386/movbe-2.c: Likewise. * gcc.target/i386/movq-2.c: Likewise. * gcc.target/i386/movq.c: Likewise. * gcc.target/i386/nrv1.c: Likewise. * gcc.target/i386/pad-4.c: Likewise. * gcc.target/i386/pad-5a.c: Likewise. * gcc.target/i386/pad-5b.c: Likewise. * gcc.target/i386/pad-6a.c: Likewise. * gcc.target/i386/pad-6b.c: Likewise. * gcc.target/i386/pad-7.c: Likewise. * gcc.target/i386/pad-9.c: Likewise. * gcc.target/i386/pentium4-not-mull.c: Likewise. * gcc.target/i386/pic-1.c: Likewise. * gcc.target/i386/pr12092-1.c: Likewise. * gcc.target/i386/pr12329.c: Likewise. * gcc.target/i386/pr21518.c: Likewise. * gcc.target/i386/pr22362.c: Likewise. * gcc.target/i386/pr22585.c: Likewise. * gcc.target/i386/pr23098.c: Likewise. * gcc.target/i386/pr25196.c: Likewise. * gcc.target/i386/pr25293.c: Likewise. * gcc.target/i386/pr25654.c: Likewise. * gcc.target/i386/pr26449.c: Likewise. * gcc.target/i386/pr26778.c: Likewise. * gcc.target/i386/pr26826.c: Likewise. * gcc.target/i386/pr27266.c: Likewise. * gcc.target/i386/pr29978.c: Likewise. * gcc.target/i386/pr30505.c: Likewise. * gcc.target/i386/pr30961-1.c: Likewise. * gcc.target/i386/pr31628.c: Likewise. * gcc.target/i386/pr32000-2.c: Likewise. * gcc.target/i386/pr32661-1.c: Likewise. * gcc.target/i386/pr32708-2.c: Likewise. * gcc.target/i386/pr32708-3.c: Likewise. * gcc.target/i386/pr34256.c: Likewise. * gcc.target/i386/pr34312.c: Likewise. * gcc.target/i386/pr34522.c: Likewise. * gcc.target/i386/pr35160.c: Likewise. * gcc.target/i386/pr35281.c: Likewise. * gcc.target/i386/pr36246.c: Likewise. * gcc.target/i386/pr36786.c: Likewise. * gcc.target/i386/pr37275.c: Likewise. * gcc.target/i386/pr37843-3.c: Likewise. * gcc.target/i386/pr37843-4.c: Likewise. * gcc.target/i386/pr39082-1.c: Likewise. * gcc.target/i386/pr39431.c: Likewise. * gcc.target/i386/pr39496.c: Likewise. * gcc.target/i386/pr39543-2.c: Likewise. * gcc.target/i386/pr39911.c: Likewise. * gcc.target/i386/pr40718.c: Likewise. * gcc.target/i386/pr40906-1.c: Likewise. * gcc.target/i386/pr40906-2.c: Likewise. * gcc.target/i386/pr40906-3.c: Likewise. * gcc.target/i386/pr40934.c: Likewise. * gcc.target/i386/pr41900.c: Likewise. * gcc.target/i386/pr42589.c: Likewise. * gcc.target/i386/pr43662.c: Likewise. * gcc.target/i386/pr43671.c: Likewise. * gcc.target/i386/pr43766.c: Likewise. * gcc.target/i386/pr43869.c: Likewise. * gcc.target/i386/pr44942.c: Likewise. * gcc.target/i386/pr44948-2a.c: Likewise. * gcc.target/i386/pr45234.c: Likewise. * gcc.target/i386/pr45336-2.c: Likewise. * gcc.target/i386/pr45336-4.c: Likewise. * gcc.target/i386/pr45852.c: Likewise. * gcc.target/i386/pr46470.c: Likewise. * gcc.target/i386/pr48037-1.c: Likewise. * gcc.target/i386/pr48389.c: Likewise. * gcc.target/i386/pr49095.c: Likewise. * gcc.target/i386/pr9771-1.c: Likewise. * gcc.target/i386/rdfsbase-1.c: Likewise. * gcc.target/i386/rdfsbase-2.c: Likewise. * gcc.target/i386/rdgsbase-1.c: Likewise. * gcc.target/i386/rdgsbase-2.c: Likewise. * gcc.target/i386/rdrand-3.c: Likewise. * gcc.target/i386/regparm-stdcall.c: Likewise. * gcc.target/i386/regparm.c: Likewise. * gcc.target/i386/reload-1.c: Likewise. * gcc.target/i386/rotate-2.c: Likewise. * gcc.target/i386/sibcall-5.c: Likewise. * gcc.target/i386/signbit-1.c: Likewise. * gcc.target/i386/signbit-2.c: Likewise. * gcc.target/i386/signbit-3.c: Likewise. * gcc.target/i386/sse-5.c: Likewise. * gcc.target/i386/sse-8.c: Likewise. * gcc.target/i386/sse-cvtsi2ss-2.c: Likewise. * gcc.target/i386/sse-cvtss2si-2.c: Likewise. * gcc.target/i386/sse-cvttss2si-2.c: Likewise. * gcc.target/i386/sse2-cvtsd2si-2.c: Likewise. * gcc.target/i386/sse2-cvtsi2sd-2.c: Likewise. * gcc.target/i386/sse2-cvttsd2si-2.c: Likewise. * gcc.target/i386/sse2-init-v2di-2.c: Likewise. * gcc.target/i386/sse2-movq-2.c: Likewise. * gcc.target/i386/sse2-movq-3.c: Likewise. * gcc.target/i386/sse4_1-insertps-3.c: Likewise. * gcc.target/i386/sse4_1-pextrq.c: Likewise. * gcc.target/i386/sse4_1-pinsrq.c: Likewise. * gcc.target/i386/sse4_2-crc32q.c: Likewise. * gcc.target/i386/sse4_2-popcntq.c: Likewise. * gcc.target/i386/ssefn-1.c: Likewise. * gcc.target/i386/ssefn-2.c: Likewise. * gcc.target/i386/sseregparm-1.c: Likewise. * gcc.target/i386/sseregparm-2.c: Likewise. * gcc.target/i386/sseregparm-3.c: Likewise. * gcc.target/i386/sseregparm-4.c: Likewise. * gcc.target/i386/sseregparm-5.c: Likewise. * gcc.target/i386/sseregparm-6.c: Likewise. * gcc.target/i386/sseregparm-7.c: Likewise. * gcc.target/i386/sseregparm-8.c: Likewise. * gcc.target/i386/stack-realign.c: Likewise. * gcc.target/i386/stack-usage-realign.c: Likewise. * gcc.target/i386/stackalign/asm-1.c: Likewise. * gcc.target/i386/stackalign/longlong-1.c: Likewise. * gcc.target/i386/stackalign/longlong-2.c: Likewise. * gcc.target/i386/stackalign/return-1.c: Likewise. * gcc.target/i386/stackalign/return-2.c: Likewise. * gcc.target/i386/stackalign/return-3.c: Likewise. * gcc.target/i386/tailcall-1.c: Likewise. * gcc.target/i386/tbm-2.c: Likewise. * gcc.target/i386/udivmod-7.c: Likewise. * gcc.target/i386/udivmod-8.c: Likewise. * gcc.target/i386/unroll-1.c: Likewise. * gcc.target/i386/vararg-1.c: Likewise. * gcc.target/i386/vararg-2.c: Likewise. * gcc.target/i386/vect8-ret.c: Likewise. * gcc.target/i386/vectorize5.c: Likewise. * gcc.target/i386/wmul-1.c: Likewise. * gcc.target/i386/wmul-2.c: Likewise. * gcc.target/i386/wrfsbase-1.c: Likewise. * gcc.target/i386/wrfsbase-2.c: Likewise. * gcc.target/i386/wrgsbase-1.c: Likewise. * gcc.target/i386/wrgsbase-2.c: Likewise. * gcc.target/i386/xop-pcmov.c: Likewise. * gcc.target/i386/xop-pcmov2.c: Likewise. * gcc.target/i386/xop-rotate1-vector.c: Likewise. * gcc.target/i386/xop-rotate2-vector.c: Likewise. * gcc.target/i386/xop-rotate3-vector.c: Likewise. * gcc.target/i386/xop-shift1-vector.c: Likewise. * gcc.target/i386/xop-shift2-vector.c: Likewise. * gcc.target/i386/xop-shift3-vector.c: Likewise. * gcc.target/i386/zee.c: Likewise. * gcc.target/x86_64/abi/callabi/callabi.exp: Likewise. * gfortran.dg/compiler-directive_2.f: Likewise. * gfortran.dg/g77/20010216-1.f: Likewise. * gfortran.dg/gomp/pr39152.f90: Likewise. * gfortran.dg/pr33794.f90: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176090 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48481jason2011-06-301-3/+2
| | | | | | | | * name-lookup.c (struct arg_lookup): Add fn_set. (add_function): Check it. (lookup_arg_dependent_1): Initialize it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175732 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49216jason2011-06-291-1/+1
| | | | | | | * init.c (build_new_1): Pass {} down to build_vec_init. (build_vec_init): Handle it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175674 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/49272jason2011-06-291-1/+1
| | | | | | * g++.old-deja/g++.jason/rfg10.C: Accept other overflow error too. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@175659 138bc75d-0d04-0410-961f-82ee72b054a4
* * lib/prune.exp: Prune "note"s.jason2011-06-108-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | * g++.dg/uninit-pred-3_b.C: Remove dg-excess-errors. * g++.dg/ext/injected-ttp.C: Specify -std=c++98. * g++.dg/template/dependent-expr3.C: Likewise. * g++.dg/parse/template7.C: Likewise. * g++.old-deja/g++.bugs/900119_01.C: Likewise. * g++.old-deja/g++.jason/rfg10.C: Likewise. * g++.old-deja/g++.pt/friend38.C: Likewise. * g++.old-deja/g++.pt/crash32.C: Likewise. * g++.old-deja/g++.other/init4.C: Likewise. * g++.old-deja/g++.other/friend8.C: Likewise. * g++.dg/ext/complex7.C: Adjust expected output. * g++.dg/diagnostic/method1.C: Likewise. * g++.dg/parse/parameter-declaration-2.C: Likewise. * g++.dg/parse/crash33.C: Likewise. * g++.dg/other/warning1.C: Likewise. * g++.dg/init/pr29571.C: Likewise. * g++.dg/warn/overflow-warn-1.C: Likewise. * g++.dg/warn/overflow-warn-3.C: Likewise. * g++.dg/warn/overflow-warn-4.C: Likewise. * g++.old-deja/g++.oliva/template1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174886 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48969jason2011-06-0711-11/+13
| | | | | | | | | | | | | | | PR c++/44175 gcc/c-family/ * c-common.c (max_tinst_depth): Lower default to 900. gcc/cp/ * error.c (subst_to_string): New. (cp_printer): Use it for 'S'. (print_instantiation_partial_context_line): Handle subst context. * pt.c (push_tinst_level): Handle subst context. (deduction_tsubst_fntype): Don't track specific substitutions. Use push_tinst_level. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174772 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/47956jason2011-05-271-1/+1
| | | | | | | | | | * decl.c (check_static_variable_definition): Now static. (cp_finish_decl): Call it here. (grokdeclarator): Not here. * pt.c (instantiate_class_template_1): Or here. * cp-tree.h: Don't declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174317 138bc75d-0d04-0410-961f-82ee72b054a4
* detect C++ errors to fix 2288 and 18770froydnj2011-05-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | gcc/cp/ PR c++/2288 PR c++/18770 * name-lookup.h (enum scope_kind): Add sk_cond. * name-lookup.c (pushdecl_maybe_friend): Get scope of shadowed local. Detect and report error for redeclaration from for-init or if or switch condition. (begin_scope): Handle sk_cond. * semantics.c (begin_if_stmt): Use sk_cond. (begin switch_stmt): Ditto. gcc/testsuite/ PR c++/2288 PR c++/18770 * g++.old-deja/g++.jason/cond.C: Remove xfails. * g++.dg/parse/pr18770.C: New test. * g++.dg/cpp0x/range-for5.C: Add dg-error marker. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174307 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48536jason2011-05-261-1/+2
| | | | | | | * decl.c (build_enumerator): If incremented enumerator won't fit in previous integral type, find one it will fit in. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174258 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/24163jason2011-05-202-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/29131 gcc/cp/ * pt.c (tsubst_copy_and_build) [CALL_EXPR]: Avoid repeating unqualified lookup. * semantics.c (perform_koenig_lookup): Add complain parm. * cp-tree.h: Adjust. * parser.c (cp_parser_postfix_expression): Adjust. (cp_parser_perform_range_for_lookup): Adjust. libstdc++-v3/ * include/ext/pb_ds/assoc_container.hpp: Explicitly qualify calls to functions from dependent bases. * include/ext/pb_ds/detail/rb_tree_map_/erase_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/rb_tree_map_/ split_join_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/erase_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/insert_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/splay_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/splay_tree_/ split_join_fn_imps.hpp: Likewise. * include/ext/pb_ds/detail/tree_policy/ order_statistics_imp.hpp: Likewise. * include/ext/pb_ds/detail/trie_policy/ prefix_search_node_update_imp.hpp: Likewise. * include/ext/rc_string_base.h: Likewise. * include/ext/rope: Likewise. * include/ext/ropeimpl.h: Likewise. * testsuite/util/exception/safety.h: Likewise. * testsuite/util/native_type/native_priority_queue.hpp: Likewise. * testsuite/util/testsuite_io.h: Likewise. * include/std/functional: Declare mem_fn earlier. * include/tr1/functional: Likewise. * include/tr1/exp_integral.tcc: Declare __expint_E1 earlier. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173965 138bc75d-0d04-0410-961f-82ee72b054a4
* cp/ChangeLogdnovillo2011-04-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2011-04-29 Le-Chun Wu <lcwu@google.com> * cp-tree.h (LOOKUP_EXPLICIT_TMPL_ARGS): Define. * call.c (build_new_function_call): Set it for TEMPLATE_ID_EXPRs. (build_over_call): Use it to determine whether to emit a NULL warning for template function instantiations. (build_new_method_call): Set LOOKUP_EXPLICIT_TMPL_ARGS if EXPLICIT_TARGS is set. 2011-04-29 Diego Novillo <dnovillo@google.com> Le-Chun Wu <lcwu@google.com> * call.c (conversion_null_warnings): Also handle assignments when warning about NULL conversions. testsuite/ChangeLog 2011-04-29 Le-Chun Wu <lcwu@google.com> * g++.dg/warn/Wnull-conversion-1.C: New. * g++.dg/warn/Wnull-conversion-2.C: New. 2011-04-29 Le-Chun Wu <lcwu@google.com> * g++.dg/warn/Wconversion-null-2.C: Do not expect a NULL warning in implicitly instantiated templates. 2011-04-29 Diego Novillo <dnovillo@google.com> * g++.old-deja/g++.other/null3.C: Expect warning about converting boolean to a pointer. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173217 138bc75d-0d04-0410-961f-82ee72b054a4
* /cppaolo2011-04-281-3/+2
| | | | | | | | | | | | | | | | | | 2011-04-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/48798 * semantics.c (finish_base_specifier): cv-qualified base class is fine, per DR 484. /testsuite 2011-04-28 Paolo Carlini <paolo.carlini@oracle.com> PR c++/48798 * g++.dg/inherit/pr48798.C: New. * g++.old-deja/g++.other/base1.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173124 138bc75d-0d04-0410-961f-82ee72b054a4
* * class.c (resolve_address_of_overloaded_function): Don'tjason2011-04-271-1/+1
| | | | | | | change OVERLOAD to TREE_LIST. * pt.c (print_candidates_1): Remove nonsensical assert. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173037 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48113jason2011-03-162-2/+2
| | | | | | | | | | * typeck.c (convert_for_initialization): Use perform_implicit_conversion_flags. * call.c (standard_conversion): If LOOKUP_PREFER_RVALUE, set rvaluedness_matches_p on ck_rvalue. (convert_like_real) [ck_rvalue]: And restore it here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@171067 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/47198jason2011-03-104-4/+4
| | | | | | | * parser.c (cp_parser_single_declaration): Just return if cp_parser_parse_and_diagnose_invalid_type_name complained. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170847 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/48003jason2011-03-081-0/+1
| | | | | | | | * pt.c (convert_nontype_argument): Fix -fpermissive allowing integer overflow. * semantics.c (potential_constant_expression_1): Check TREE_OVERFLOW. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170771 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/parse/constant1.C: Specify C++98 mode.jason2011-02-251-0/+2
| | | | | | | | | | | | | | | | * g++.dg/parse/constant5.C: Likewise. * g++.dg/parse/error2.C: Likewise. * g++.dg/parse/semicolon3.C: Likewise. * g++.dg/template/crash14.C: Likewise. * g++.dg/template/local4.C: Likewise. * g++.dg/template/nontype3.C: Likewise. * g++.dg/parse/crash31.C: Adjust expected errors. * g++.dg/template/function1.C: Likewise. * g++.dg/template/ref3.C: Likewise. * g++.dg/template/static9.C: Likewise. * g++.old-deja/g++.pt/crash41.C: Instantiate template. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170489 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/ext/vla1.C: Adjust for C++0x mode.jason2011-02-104-0/+9
| | | | | | | | | | | * g++.dg/other/warning1.C: Likewise. * g++.old-deja/g++.bugs/900119_01.C: Likewise. * g++.old-deja/g++.gb/scope06.C: Likewise. * g++.old-deja/g++.law/cvt11.C: Likewise. * g++.old-deja/g++.law/init1.C: Likewise. * g++.dg/abi/mangle26.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170010 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.other/init19.C: Don't XFAIL on mips-sgi-irix*.ro2011-01-171-1/+1
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@168911 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/cp/froydnj2010-12-0877-83/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/45329 * call.c (struct conversion): Document bad_p field. (enum rejection_reason_code): Define. (struct conversion_info): Define. (struct rejection_reason): Define. (struct z_candidate): Add `reason' field. (add_candidate): Add `reason' parameter. Store it in CAND. (alloc_rejection, arity_rejection, arg_conversion_rejection): New functions. (bad_arg_conversion_rejection): New function. (convert_class_to_reference): Add comment. (remaining_arguments): New function. (add_function_candidate): Record rejection reason and pass it to add_candidate. (add_conv_candidate, build_builtin_candidate): Likewise. (add_template_candidate_real): Likewise. (print_conversion_rejection): New function. (print_z_candidate): Print CAND->REASON if it exists. Adjust diagnostic strings. (print_z_candidates): Add location_t argument. Adjust calling sequence for print_z_candidate. Print header line directly. (build_user_type_conversion_1): Add reason for rejection to CAND. Adjust call to print_z_candidates. (print_error_for_call_failure): New function. (build_new_function_call): Call it. Adjust call to print_z_candidates. (build_operator_new_call): Likewise. (build_op_call): Likewise. (build_conditional_expr): Likewise. (build_new_op): Likewise. (build_new_method_call): Likewise. gcc/testsuite/ PR c++/45329 * testsuite/g++.dg/conversion/ambig1.C: Adjust. * testsuite/g++.dg/conversion/op1.C: Adjust. * testsuite/g++.dg/conversion/simd1.C: Adjust. * testsuite/g++.dg/cpp0x/defaulted14.C: Adjust. * testsuite/g++.dg/cpp0x/defaulted18.C: Adjust. * testsuite/g++.dg/cpp0x/defaulted20.C: Adjust. * testsuite/g++.dg/cpp0x/explicit3.C: Adjust. * testsuite/g++.dg/cpp0x/explicit4.C: Adjust. * testsuite/g++.dg/cpp0x/implicit4.C: Adjust. * testsuite/g++.dg/cpp0x/nullptr15.C: Adjust. * testsuite/g++.dg/cpp0x/nullptr19.C: Adjust. * testsuite/g++.dg/cpp0x/pr31431-2.C: Adjust. * testsuite/g++.dg/cpp0x/pr31431.C: Adjust. * testsuite/g++.dg/cpp0x/pr31434.C: Adjust. * testsuite/g++.dg/cpp0x/pr31437.C: Adjust. * testsuite/g++.dg/cpp0x/rv2n.C: Adjust. * testsuite/g++.dg/cpp0x/rv3n.C: Adjust. * testsuite/g++.dg/cpp0x/rv4n.C: Adjust. * testsuite/g++.dg/cpp0x/rv5n.C: Adjust. * testsuite/g++.dg/cpp0x/rv6n.C: Adjust. * testsuite/g++.dg/cpp0x/rv7n.C: Adjust. * testsuite/g++.dg/cpp0x/temp_default2.C: Adjust. * testsuite/g++.dg/cpp0x/trailing4.C: Adjust. * testsuite/g++.dg/cpp0x/variadic-ex3.C: Adjust. * testsuite/g++.dg/cpp0x/variadic-ex4.C: Adjust. * testsuite/g++.dg/cpp0x/variadic35.C: Adjust. * testsuite/g++.dg/cpp0x/vt-35147.C: Adjust. * testsuite/g++.dg/cpp0x/vt-37737-2.C: Adjust. * testsuite/g++.dg/expr/cond9.C: Adjust. * testsuite/g++.dg/expr/pmf-1.C: Adjust. * testsuite/g++.dg/ext/label5.C: Adjust. * testsuite/g++.dg/ext/visibility/anon8.C: Adjust. * testsuite/g++.dg/ext/vla2.C: Adjust. * testsuite/g++.dg/gomp/pr26690-1.C: Adjust. * testsuite/g++.dg/gomp/pr26690-2.C: Adjust. * testsuite/g++.dg/init/synth2.C: Adjust. * testsuite/g++.dg/lookup/conv-1.C: Adjust. * testsuite/g++.dg/lookup/new1.C: Adjust. * testsuite/g++.dg/lookup/using9.C: Adjust. * testsuite/g++.dg/other/error13.C: Adjust. * testsuite/g++.dg/other/error20.C: Adjust. * testsuite/g++.dg/other/error31.C: Adjust. * testsuite/g++.dg/other/pr28114.C: Adjust. * testsuite/g++.dg/other/ptrmem10.C: Adjust. * testsuite/g++.dg/other/ptrmem11.C: Adjust. * testsuite/g++.dg/overload/ambig1.C: Adjust. * testsuite/g++.dg/overload/arg3.C: Adjust. * testsuite/g++.dg/overload/builtin1.C: Adjust. * testsuite/g++.dg/overload/copy1.C: Adjust. * testsuite/g++.dg/overload/new1.C: Adjust. * testsuite/g++.dg/overload/template4.C: Adjust. * testsuite/g++.dg/overload/unknown1.C: Adjust. * testsuite/g++.dg/overload/using2.C: Adjust. * testsuite/g++.dg/parse/crash5.C: Adjust. * testsuite/g++.dg/parse/error19.C: Adjust. * testsuite/g++.dg/parse/error28.C: Adjust. * testsuite/g++.dg/parse/template7.C: Adjust. * testsuite/g++.dg/parse/typename7.C: Adjust. * testsuite/g++.dg/rtti/typeid6.C: Adjust. * testsuite/g++.dg/tc1/dr152.C: Adjust. * testsuite/g++.dg/template/conv11.C: Adjust. * testsuite/g++.dg/template/copy1.C: Adjust. * testsuite/g++.dg/template/crash37.C: Adjust. * testsuite/g++.dg/template/deduce3.C: Adjust. * testsuite/g++.dg/template/dependent-expr5.C: Adjust. * testsuite/g++.dg/template/error38.C: Adjust. * testsuite/g++.dg/template/error40.C: Adjust. * testsuite/g++.dg/template/friend.C: Adjust. * testsuite/g++.dg/template/incomplete2.C: Adjust. * testsuite/g++.dg/template/instantiate5.C: Adjust. * testsuite/g++.dg/template/local4.C: Adjust. * testsuite/g++.dg/template/local6.C: Adjust. * testsuite/g++.dg/template/new3.C: Adjust. * testsuite/g++.dg/template/operator9.C: Adjust. * testsuite/g++.dg/template/overload6.C: Adjust. * testsuite/g++.dg/template/ptrmem2.C: Adjust. * testsuite/g++.dg/template/ptrmem20.C: Adjust. * testsuite/g++.dg/template/ptrmem4.C: Adjust. * testsuite/g++.dg/template/ptrmem8.C: Adjust. * testsuite/g++.dg/template/qualttp5.C: Adjust. * testsuite/g++.dg/template/sfinae2.C: Adjust. * testsuite/g++.dg/template/spec22.C: Adjust. * testsuite/g++.dg/template/spec23.C: Adjust. * testsuite/g++.dg/template/ttp25.C: Adjust. * testsuite/g++.dg/template/typedef4.C: Adjust. * testsuite/g++.dg/template/unify10.C: Adjust. * testsuite/g++.dg/template/unify11.C: Adjust. * testsuite/g++.dg/template/unify6.C: Adjust. * testsuite/g++.dg/template/unify7.C: Adjust. * testsuite/g++.dg/template/unify9.C: Adjust. * testsuite/g++.dg/template/varmod1.C: Adjust. * testsuite/g++.old-deja/g++.benjamin/15799.C: Adjust. * testsuite/g++.old-deja/g++.benjamin/15800-1.C: Adjust. * testsuite/g++.old-deja/g++.brendan/ambiguity1.C: Adjust. * testsuite/g++.old-deja/g++.brendan/crash29.C: Adjust. * testsuite/g++.old-deja/g++.brendan/crash48.C: Adjust. * testsuite/g++.old-deja/g++.brendan/crash56.C: Adjust. * testsuite/g++.old-deja/g++.brendan/cvt3.C: Adjust. * testsuite/g++.old-deja/g++.brendan/overload1.C: Adjust. * testsuite/g++.old-deja/g++.brendan/overload4.C: Adjust. * testsuite/g++.old-deja/g++.brendan/overload9.C: Adjust. * testsuite/g++.old-deja/g++.bugs/900127_01.C: Adjust. * testsuite/g++.old-deja/g++.bugs/900205_04.C: Adjust. * testsuite/g++.old-deja/g++.bugs/900330_02.C: Adjust. * testsuite/g++.old-deja/g++.bugs/900404_03.C: Adjust. * testsuite/g++.old-deja/g++.bugs/900514_03.C: Adjust. * testsuite/g++.old-deja/g++.eh/ctor1.C: Adjust. * testsuite/g++.old-deja/g++.jason/conversion11.C: Adjust. * testsuite/g++.old-deja/g++.jason/crash3.C: Adjust. * testsuite/g++.old-deja/g++.jason/overload16.C: Adjust. * testsuite/g++.old-deja/g++.jason/overload28.C: Adjust. * testsuite/g++.old-deja/g++.jason/scoping10.C: Adjust. * testsuite/g++.old-deja/g++.jason/template30.C: Adjust. * testsuite/g++.old-deja/g++.jason/temporary2.C: Adjust. * testsuite/g++.old-deja/g++.law/arg1.C: Adjust. * testsuite/g++.old-deja/g++.law/arg11.C: Adjust. * testsuite/g++.old-deja/g++.law/arm9.C: Adjust. * testsuite/g++.old-deja/g++.law/ctors11.C: Adjust. * testsuite/g++.old-deja/g++.law/ctors17.C: Adjust. * testsuite/g++.old-deja/g++.law/ctors5.C: Adjust. * testsuite/g++.old-deja/g++.law/ctors9.C: Adjust. * testsuite/g++.old-deja/g++.law/enum4.C: Adjust. * testsuite/g++.old-deja/g++.law/missed-error2.C: Adjust. * testsuite/g++.old-deja/g++.law/operators32.C: Adjust. * testsuite/g++.old-deja/g++.law/operators9.C: Adjust. * testsuite/g++.old-deja/g++.mike/net2.C: Adjust. * testsuite/g++.old-deja/g++.mike/net22.C: Adjust. * testsuite/g++.old-deja/g++.mike/p11110.C: Adjust. * testsuite/g++.old-deja/g++.mike/p1989.C: Adjust. * testsuite/g++.old-deja/g++.mike/p2431.C: Adjust. * testsuite/g++.old-deja/g++.mike/p438.C: Adjust. * testsuite/g++.old-deja/g++.mike/p807a.C: Adjust. * testsuite/g++.old-deja/g++.mike/p9068.C: Adjust. * testsuite/g++.old-deja/g++.niklas/t120.C: Adjust. * testsuite/g++.old-deja/g++.niklas/t121.C: Adjust. * testsuite/g++.old-deja/g++.niklas/t128.C: Adjust. * testsuite/g++.old-deja/g++.ns/overload2.C: Adjust. * testsuite/g++.old-deja/g++.ns/using12.C: Adjust. * testsuite/g++.old-deja/g++.other/crash24.C: Adjust. * testsuite/g++.old-deja/g++.other/expr1.C: Adjust. * testsuite/g++.old-deja/g++.other/overload11.C: Adjust. * testsuite/g++.old-deja/g++.other/pmf3.C: Adjust. * testsuite/g++.old-deja/g++.other/volatile1.C: Adjust. * testsuite/g++.old-deja/g++.pt/auto_ptr.C: Adjust. * testsuite/g++.old-deja/g++.pt/crash28.C: Adjust. * testsuite/g++.old-deja/g++.pt/crash60.C: Adjust. * testsuite/g++.old-deja/g++.pt/explicit38.C: Adjust. * testsuite/g++.old-deja/g++.pt/explicit39.C: Adjust. * testsuite/g++.old-deja/g++.pt/explicit41.C: Adjust. * testsuite/g++.old-deja/g++.pt/explicit67.C: Adjust. * testsuite/g++.old-deja/g++.pt/explicit77.C: Adjust. * testsuite/g++.old-deja/g++.pt/expr2.C: Adjust. * testsuite/g++.old-deja/g++.pt/ptrmem10.C: Adjust. * testsuite/g++.old-deja/g++.pt/ptrmem6.C: Adjust. * testsuite/g++.old-deja/g++.pt/spec35.C: Adjust. * testsuite/g++.old-deja/g++.pt/spec5.C: Adjust. * testsuite/g++.old-deja/g++.pt/spec6.C: Adjust. * testsuite/g++.old-deja/g++.pt/t05.C: Adjust. * testsuite/g++.old-deja/g++.pt/t24.C: Adjust. * testsuite/g++.old-deja/g++.pt/unify4.C: Adjust. * testsuite/g++.old-deja/g++.pt/unify6.C: Adjust. * testsuite/g++.old-deja/g++.pt/unify8.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb109.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb119.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb131.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb22.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb69.C: Adjust. * testsuite/g++.old-deja/g++.robertl/eb98.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167607 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/froydnj2010-12-075-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/45330 * params.def (CXX_MAX_NAMESPACES_FOR_DIAGNOSTIC_HELP): New parameter. * doc/invoke.texi (cxx-max-namespaces-for-diagnostic-help): Document. gcc/cp/ PR c++/45330 * cp-tree.h (suggest_alternatives_for, location_of): Declare. * error.c (dump_expr): Handle TYPE_DECL. (location_of): Unstaticize. * name-lookup.c (suggest_alternatives_for): New function. * lex.c (unqualified_name_lookup_error): Call it. gcc/testsuite/ PR c++/45330 * g++.dg/pr45330.C: New test. * g++.dg/ext/builtin3.C: Adjust. * g++.dg/lookup/error1.C: Adjust. * g++.dg/lookup/koenig5.C: Adjust. * g++.dg/overload/koenig1.C: Adjust. * g++.dg/parse/decl-specifier-1.C: Adjust. * g++.dg/template/static10.C: Adjust. * g++.old-deja/g++.mike/ns5.C: Adjust. * g++.old-deja/g++.mike/ns7.C: Adjust. * g++.old-deja/g++.ns/koenig5.C: Adjust. * g++.old-deja/g++.ns/koenig9.C: Adjust. * g++.old-deja/g++.other/lineno5.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167536 138bc75d-0d04-0410-961f-82ee72b054a4
* revert accidentally committed changesfroydnj2010-11-245-5/+0
| | | | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167130 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/froydnj2010-11-245-0/+5
| | | | | | | | | | | | | | | | | | | | | | * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN. * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete. * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document. * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison. libgcc/ * config/libbid/bid_conf.h (BID_BIG_ENDIAN): Define in terms of __FLOAT_WORD_ORDER__. * config/libbid/bid_gcc_intrinsics.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete. libdecnumber/ * dconfig.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete. (WORDS_BIG_ENDIAN): Define based on value of __FLOAT_WORD_ORDER__. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167129 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc/c-family/froydnj2010-11-201-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR c++/16189 PR c++/36888 PR c++/45331 * c-common.h (keyword_begins_type_specifier): Declare. (keyword_is_storage_class_specifier): Declare. (keyword_is_type_qualifier): Declare. * c-common.c (keyword_begins_type_specifier): New function. (keyword_is_storage_class_specifier): New function. (keyword_is_type_qualifier): Declare. gcc/cp/ PR c++/16189 PR c++/36888 PR c++/45331 * parser.c (cp_lexer_set_token_position): New function. (cp_lexer_previous_token_position): New function. (cp_lexer_previous_token): Call it. (cp_parser_class_specifier): Try to gracefully handle a missing semicolon. gcc/testsuite/ PR c++/16189 PR c++/36888 PR c++/45331 * g++.dg/parse/semicolon3.C: New test. * g++.dg/debug/pr22514.C: Adjust. * g++.dg/init/error1.C: Adjust. * g++.dg/other/bitfield3.C: Adjust. * g++.dg/other/semicolon.C: Adjust. * g++.dg/parse/error14.C: Adjust. * g++.dg/parse/error5.C: Adjust. * g++.dg/parse/parameter-declaration-1.C: Adjust. * g++.dg/template/pr23510.C: Adjust. * g++.dg/template/pr39425.C: Adjust. * g++.old-deja/g++.robertl/eb125.C: Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166977 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/abi/rtti3.C: Scan for .weakext on alpha*-dec-osf*.ro2010-11-101-3/+3
| | | | | | | | | | | | | | | | | * g++.dg/abi/thunk4.C: Likewise. * g++.dg/opt/combine.C: Add dg-require-visibility. * g++.dg/other/anon5.C: Skip on alpha*-dec-osf*. * g++.dg/warn/miss-format-1.C: XFAIL scanf attribute warning on alpha*-dec-osf*. * g++.dg/warn/pr31246.C: XFAIL on alpha*-dec-osf*. * g++.dg/warn/weak1.C: Skip on alpha*-dec-osf*. * g++.old-deja/g++.eh/badalloc1.C [!STACK_SIZE && __osf__]: Use large arena_size. * gcc.dg/attr-weakref-1.c: Skip on alpha*-dec-osf*. * gcc.dg/intmax_t-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166548 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (null_ptr_cst_p): Use maybe_constant_value.jason2010-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (set_up_extended_ref_temp): Support constant initialization. (initialize_reference): Adjust. * class.c (check_bitfield_decl): Use cxx_constant_value. * cvt.c (ocp_convert): Don't use integral_constant_value when converting to class type. * decl.c (finish_case_label): Use maybe_constant_value. (build_init_list_var_init): Support constant initialization. (check_initializer): Likewise. Reorganize. (cp_finish_decl): Likewise. (expand_static_init): Likewise. (compute_array_index_type): Use maybe_constant_value. Add complain parm. (create_array_type_for_decl, grokdeclarator): Pass it. (build_enumerator): Use cxx_constant_value. * decl2.c (grokfield): Use maybe_constant_init. * except.c (check_noexcept_r): Handle constexpr. (build_noexcept_spec): Use maybe_constant_value. * init.c (expand_default_init): Support constant initialization. (build_vec_init): Likewise. (constant_value_1): Adjust. (build_new_1): Adjust. * parser.c (cp_parser_constant_expression): Allow non-integral in C++0x mode. (cp_parser_direct_declarator): Don't fold yet in C++0x mode. (cp_parser_initializer_clause): Toss folded result if non-constant. * pt.c (fold_decl_constant_value): Remove. (convert_nontype_argument): Use maybe_constant_value. Give clearer error about overflow. (tsubst): Move array bounds handling into compute_array_index_type. (value_dependent_expression_p): Handle constant CALL_EXPR. * semantics.c (finish_static_assert): Use maybe_constant_value. (ensure_literal_type_for_constexpr_object): Make sure type is complete. (potential_constant_expression): Use maybe_constant_value. * tree.c (cast_valid_in_integral_constant_expression_p): Any cast is potentially valid in C++0x. * typeck2.c (store_init_value): Handle constant init. (check_narrowing): Use maybe_constant_value. (build_functional_cast): Set TREE_CONSTANT on literal T(). * cp-tree.h (DECL_INTEGRAL_CONSTANT_VAR_P): Remove. (LOOKUP_ALREADY_DIGESTED): New. (compute_array_index_type): Adjust prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166167 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.c (build_vec_init_expr): Split out from...jason2010-10-262-2/+2
| | | | | | | | | | | | (build_array_copy): ...here. * init.c (perform_member_init): Use it. * cp-tree.h: Declare it. * cp-gimplify.c (cp_gimplify_init_expr): Don't gimplify the slot for VEC_INIT_EXPR and AGGR_INIT_EXPR here. Drop pre/post parameters. (cp_gimplify_expr): Handle array default-initialization via VEC_INIT_EXPR. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165976 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement opaque-enum-specifiers for C++0x.jason2010-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | gcc/ * tree.h (ENUM_IS_OPAQUE): New. * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE. gcc/cp/ * cp-tree.h (SET_OPAQUE_ENUM_P): New. (OPAQUE_ENUM_P): New. (ENUM_FIXED_UNDERLYING_TYPE_P): New. (start_enum): Update prototype. (finish_enum_value_list): New prototype. * parser.c (cp_parser_elaborated_type_specifier): Issue a pedwarn if "enum class" is used in an elaborated-type-specifier. (cp_parser_enum_specifier): Rewrite to parse opaque-enum-specifiers. * decl.c (copy_type_enum): New. (finish_enum_value_list): New, with code from finish_enum. (finish_enum): A lot of code removed. Added a gcc_assert. (start_enum): Add parameters enumtype and is_new. Rewrite to work with opaque-enum-specifiers. * pt.c (maybe_process_partial_specialization): Allow for template specialization of enumerations, with a pedwarn. (lookup_template_class): Update call to start_enum. Call to SET_OPAQUE_ENUM_P. (tsubst_enum): Call to begin_scope, finish_scope and finish_enum_value_list. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@165935 138bc75d-0d04-0410-961f-82ee72b054a4
* * tree.c (lvalue_kind): Rename from lvalue_p_1, make nonstatic.jason2010-09-281-1/+2
| | | | | | | | | (real_lvalue_p): Take const_tree. * cp-tree.h: Adjust. * typeck.c (lvalue_or_else): Make temporary arg a permerror. (cp_build_addr_expr_1): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164704 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.bugs/900121_02.C: Adjust for C++0x mode.jason2010-09-282-0/+2
| | | | | | * g++.old-deja/g++.mike/misc6.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164703 138bc75d-0d04-0410-961f-82ee72b054a4
* Require lvalues as specified by the standard.jason2010-09-273-5/+5
| | | | | | | | | | | | | | | | | | | | | | | * typeck.c (lvalue_or_else): Use real_lvalue_p. (cp_build_addr_expr_1): Split out of cp_build_unary_op. (cp_build_addr_expr, cp_build_addr_expr_strict): Interfaces. (decay_conversion, get_member_function_from_ptrfunc): Adjust. (build_x_unary_op, build_reinterpret_cast_1): Adjust. (build_const_cast_1): Adjust. * cp-tree.h: Declare new fns. * call.c (build_this, convert_like_real, build_over_call): Adjust. (initialize_reference): Adjust. * class.c (build_base_path, convert_to_base_statically): Adjust. (build_vfn_ref, resolve_address_of_overloaded_function): Adjust. * cvt.c (build_up_reference, convert_to_reference): Adjust. * decl.c (register_dtor_fn): Adjust. * decl2.c (build_offset_ref_call_from_tree): Adjust. * except.c (initialize_handler_parm): Adjust. * init.c (build_offset_ref, build_delete, build_vec_delete): Adjust. * rtti.c (build_dynamic_cast_1, tinfo_base_init): Adjust. * tree.c (stabilize_expr): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@164666 138bc75d-0d04-0410-961f-82ee72b054a4
* * gcc.dg/march.c: Skip if -march defined.uros2010-08-081-1/+2
| | | | | | | | | | | * gcc.dg/mtune.c: Skip if -mtune defined. * g++.old-deja/g++.jason/thunk3.C: Skip for targets with generic thunk support. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162998 138bc75d-0d04-0410-961f-82ee72b054a4
* Implement C++0x unrestricted unions (N2544)jason2010-07-143-0/+5
| | | | | | | | | | | | | * class.c (check_field_decl): Loosen union handling in C++0x. * method.c (walk_field_subobs): Split out from... (synthesized_method_walk): ...here. Set msg before loops. (process_subob_fn): Check for triviality in union members. * init.c (sort_mem_initializers): Splice out uninitialized anonymous unions and union members. (push_base_cleanups): Don't automatically destroy anonymous unions and union members. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@162187 138bc75d-0d04-0410-961f-82ee72b054a4
* Enable implicitly declared move constructor/operator= (N3053).jason2010-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | gcc/cp/ * class.c (add_implicitly_declared_members): A class with no explicitly declared copy or move constructor gets both declared implicitly, and similarly for operator=. (check_bases): A type with no copy ctor does not inhibit a const copy ctor in a derived class. (check_field_decl): Likewise. (check_bases_and_members): A nonexistent copy ctor/op= is non-trivial. * tree.c (type_has_nontrivial_copy_init): Adjust semantics. (trivially_copyable_p): Likewise. * call.c (convert_like_real): Use type_has_nontrivial_copy_init. * class.c (finish_struct_bits): Likewise. * tree.c (build_target_expr_with_type): Likewise. * typeck2.c (store_init_value): Likewise. libstdc++-v3/ * include/bits/unordered_map.h: Explicitly default copy constructors. * include/bits/unordered_set.h: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161582 138bc75d-0d04-0410-961f-82ee72b054a4
* Enable implicitly deleted functions (N2346)jason2010-06-307-14/+14
| | | | | | | * class.c (check_bases_and_members): Adjust lambda flags. * method.c (implicitly_declare_fn): Set DECL_DELETED_FN if appropriate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161581 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.dg/overload/arg3.C: Adjust error locations.jason2010-06-153-7/+5
| | | | | | | | | | | | * g++.dg/overload/copy1.C: Likewise. * g++.dg/tc1/dr152.C: Likewise. * g++.dg/template/incomplete4.C: Likewise. * g++.dg/template/incomplete5.C: Likewise. * g++.old-deja/g++.bob/inherit2.C: Likewise. * g++.old-deja/g++.pt/auto_ptr.C: Likewise. * g++.old-deja/g++.pt/crash9.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160814 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (convert_like_real): Give "initializing argument of"jason2010-06-151-2/+2
| | | | | | | information for ambiguous conversion. Give source position of function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160809 138bc75d-0d04-0410-961f-82ee72b054a4
* * g++.old-deja/g++.oliva/dwarf2.C: Don't xfail on i386-pc-solaris*.ro2010-06-093-3/+1
| | | | | | | | * g++.old-deja/g++.oliva/dwarf3.C: Likewise. * g++.old-deja/g++.other/init19.C: Don't xfail on *-*-solaris2*. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160499 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-06-03 Paolo Carlini <paolo.carlini@oracle.com>paolo2010-06-035-8/+8
| | | | | | | | | | | | | | PR libstdc++/44410 * g++.old-deja/g++.jason/new.C: Qualify size_t with std::. * g++.old-deja/g++.other/delete3.C: Likewise. * g++.old-deja/g++.other/new.C: Likewise. * g++.old-deja/g++.law/operators27.C: Likewise. * g++.old-deja/g++.mike/p755.C: Likewise. * g++.dg/eh/new1.C: Likewise. * g++.dg/init/new5.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160239 138bc75d-0d04-0410-961f-82ee72b054a4
* gcc:jason2010-05-161-1/+0
| | | | | | | | | | | * c.opt: Add -fnothrow-opt. gcc/cp: * cp-tree.h (TYPE_NOEXCEPT_P): New macro. * except.c (begin_eh_spec_block): Use MUST_NOT_THROW_EXPR if TYPE_NOEXCEPT_P. (finish_eh_spec_block): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159450 138bc75d-0d04-0410-961f-82ee72b054a4
* C++ DR 475jason2010-05-151-6/+5
| | | | | | * except.c (build_throw): Simplify, adjust for DR 475. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159428 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/20669jason2010-05-1221-25/+27
| | | | | | | | | | | * call.c (add_template_candidate_real): If deduction fails, still add the template as a non-viable candidate. (equal_functions): Handle template candidates. (print_z_candidate): Likewise. (print_z_candidates): Likewise. (build_new_function_call): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159335 138bc75d-0d04-0410-961f-82ee72b054a4
* * call.c (add_candidates): Add first_arg and return_type parms.jason2010-05-121-0/+2
| | | | | | | | | | | | Add special constructor/conversion op handling. (convert_class_to_reference): Use it. (build_user_type_conversion_1): Likewise. (build_op_call): Likewise. (build_new_method_call): Likewise. (build_new_op): Adjust. (perform_overload_resolution): Adjust. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159332 138bc75d-0d04-0410-961f-82ee72b054a4
* * semantics.c (finish_non_static_data_member): Call maybe_dummy_objectjason2010-04-271-1/+1
| | | | | | | | | whenever object is NULL_TREE. Don't do 'this' capture here. (finish_qualified_id_expr): Pass NULL_TREE. (finish_id_expression): Likewise. (lambda_expr_this_capture): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158809 138bc75d-0d04-0410-961f-82ee72b054a4
* PR c++/42844jason2010-04-271-1/+5
| | | | | | | | | | * decl.c (check_for_uninitialized_const_var): Handle classes that need constructing, too. (check_initializer): Call it for classes that need constructing, too. * class.c (in_class_defaulted_default_constructor): New. * cp-tree.h: Declare it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158797 138bc75d-0d04-0410-961f-82ee72b054a4
* 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>manu2010-04-091-1/+1
| | | | | | | | | | | | | | | | | | | | | PR c++/28584 * c.opt (Wint-to-pointer-cast): Available in C++. * doc/invoke.texi (Wint-to-pointer-cast): Available in C++. cp/ * typeck.c (cp_build_c_cast): Warn for casting integer to larger pointer type. testsuite/ * gcc.dg/Wint-to-pointer-cast-1.c: Move to... * c-c++-common/Wint-to-pointer-cast-1.c: ... here. * gcc.dg/Wint-to-pointer-cast-2.c: Move to... * c-c++-common/Wint-to-pointer-cast-2.c: ... here. * gcc.dg/Wint-to-pointer-cast-3.c: Move to... * c-c++-common/Wint-to-pointer-cast-3.c: ... here. Update. * g++.old-deja/g++.mike/warn1.C: Add -Wno-int-to-pointer-cast. * g++.dg/other/increment1.C: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158150 138bc75d-0d04-0410-961f-82ee72b054a4