[Bug c++/28346] [4.0/4.1/4.2 regression] ICE creating pointer-to-reference-member
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28346
[Bug c++/28341] [4.0/4.1/4.2 regression] ICE with references as template parameters
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28341
[Bug target/27075] [4.1/4.2 Regression] Compiler generate incorrect assembler for __sync_fetch-* builtins on e500 aka SPE
--- Comment #16 from mmitchel at gcc dot gnu dot org 2006-08-17 20:29 --- I think the patch in Comment #8 is OK, but that the right approach would be to stop using %y to denote two different things. I think we should add documentation saying that %y has dual meanings and check in this patch. Then, as a separate issue, I think we should split %y into two different operand letters so that each has consitent semantics. I've CC'd the PowerPC maintainers on this PR. If neither of them object within 24 hours, please check in this patch. Thanks, -- Mark -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added CC||dje at watson dot ibm dot ||com, geoffk at apple dot ||com, joseph at codesourcery ||dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27075
[Bug middle-end/28493] [4.1/4.2 Regression] Wrong address of stack object used for destructor call on PPC
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28493
[Bug target/28574] [4.2 regression] switch statement points to unreferenced label at -O2
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28574
[Bug target/28583] [4.2 regression] ICE in default_secondary_reload, at targhooks.c:532 when building libgcc2.c as _divsc3.o
--- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-20 22:25 --- FRV is not a primary or secondary target. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28583
[Bug c++/28588] [4.0/4.1/4.2 Regression] static private function
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588
[Bug c++/28595] [4.1/4.2 regression] ICE with invalid const static variable
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug target/28621] [4.1/4.2 Regression] SIGSEGV in set_fast_math () at -Os
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28621
[Bug target/27537] XMM alignment fault when compiling for i386 with -Os
--- Comment #9 from mmitchel at gcc dot gnu dot org 2006-08-20 22:29 --- It is definitely a bug to change the ABI with -Os. Since GCC relies on the stack being 16-byte aligned, -Os must in fact honor that requirement. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27537
[Bug target/28623] [4.1/4.2 regression] ICE in extract_insn, at recog.c:2077 (nrecognizable insn) [alpha]
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-20 22:30 --- Alpha is not a primary or secondary platform. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28623
[Bug tree-optimization/28624] [4.2 regression] latent segfault in remove_phi_node
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-20 22:31 --- Until a bug is demonstrated with the current sourcebase, this is not a priority. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28624
[Bug c++/28639] [4.2 regression] ICE trying to print error on invalid template parameter
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28639
[Bug c++/28641] [4.2 regression] ICE calling template function with invalid template parameter
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28641
[Bug middle-end/28642] [4.0/4.1/4.2 Regression] ICE in layout_type, at stor-layout.c:1851
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28642
[Bug c++/28659] [4.2 regression] ICE (segfault) while compiling kdelibs 4.0 snapshot
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28659
[Bug java/28663] [4.2 regression] gcj fails to binary-compile eclipse's javac
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28663
[Bug libstdc++/28671] [4.2 regression] undefined reference to `__sync_fetch_and_add_4'
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28671
[Bug target/28672] [4.2 Regression]: Gcc went into infinite loop when building libstdc++
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28672
[Bug target/28675] [4.1/4.2 regression] ICE in extract_insn, at recog.c:2084 (unrecognizable insn) [arm]
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28675
[Bug middle-end/28683] [4.0/4.1/4.2 regression] ICE (segfault in add_reg_br_prob_note) when comparing pointers with -O (and higher)
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28683
[Bug debug/28692] [4.2 Regression] ICE in rtl_for_decl_init, at dwarf2out.c
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28692
[Bug c++/28705] [4.0/4.1/4.2 Regression] ICE: in type_dependent_expression_p, at cp/pt.c:12837
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Keywords|ice-on-valid-code |ice-on-invalid-code Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28705
[Bug c/28706] [4.1/4.2 Regression] Compile failure with --combine and explicitly aligned structures
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28706
[Bug preprocessor/28709] [4.0/4.1/4.2 regression] Bad diagnostic pasting tokens with ##
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28709
[Bug c/28712] [4.0/4.1/4.2 Regression] Compile failure with --combine and packed structures.
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28712
[Bug c++/28736] [4.2 regression] ICE with friend of invalid template class
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28736
[Bug c++/28737] [4.2 regression] ICE using invalid template class in specialization
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28737
[Bug c++/28738] [4.2 regression] ICE specializing invalid template class
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28738
[Bug c++/28739] [4.2 regression] ICE specializing template member of invalid template class
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28739
[Bug c++/28740] [4.0/4.1/4.2 regression] ICE with invalid inheritance
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28740
[Bug c++/28741] [4.2 regression] ICE with static member in invalid template class
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28741
[Bug c++/28742] [4.2 regression] ICE with virtual destructor in invalid template class
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28742
[Bug c++/28743] [4.1/4.2 regression] ICE with invalid specialization
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28743
[Bug middle-end/28753] [4.2 regression] ICE in extract_insn, at recog.c:2075 on powerpc
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28753
[Bug middle-end/28755] [4.0/4.1/4.2 Regression] duplicate members of arrays
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28755
[Bug c/28768] [4.0/4.1/4.2 Regression] Preprocessor doesn't parse tokens correctly?
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28768
[Bug middle-end/28776] [4.2 Regression] dwarf2out.c:2160: ICE: in build_polynomial_chrec, at tree-chrec.h:108
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28776
[Bug target/28764] [4.2 Regression] libjava build failure on sh4
--- Comment #2 from mmitchel at gcc dot gnu dot org 2006-08-20 22:50 --- SH is not a primary or secondary platform. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28764
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug c++/28346] [4.0/4.1/4.2 regression] ICE creating pointer-to-reference-member
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-20 23:53 --- Subject: Bug 28346 Author: mmitchel Date: Sun Aug 20 23:53:10 2006 New Revision: 116276 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116276 Log: PR c++/28341 * tree.c (cast_valid_in_integral_constant_expression_p): New function. * cp-tree.h (tsubst_copy_and_build): Adjust prototype. * pt.c (tsubst_expr): Add integral_constant_expression_p parameter. (fold_non_dependent_expr): Adjust callers of tsubst_{expr,copy_and_build}. (tsubst_friend_function): Likewise. (tsubst_template_arg): Likewise. (tsubst_default_argument): Likewise. (tsubst_decl): Likewise. (tsubst): Likewise. (tsubst_omp_clasuses): Likewise. (regenerate_decl_fromp_template): Likewise. (instantiate_decl): Likewise. (tsubst_initializer_list): Likewise. (tsubst_enum): Likewise. (tsubst_expr): Use RECUR throughout. (tsubst_copy_and_build): Change definition of RECUR. Do not allow invalid casts in integral constant expressions. * parser.c (cp_parser_postfix_expression): Use cast_valid_in_integral_constant_expression_p. (cp_parser_cast_expression): Likewise. (cp_parser_functional_cast): Likewise. PR c++/28346 * pt.c (tsubst_qualified_id): Do not strip references from OFFSET_REFs. 2006-08-20 Mark Mitchell [EMAIL PROTECTED] PR c++/28341 * g++.dg/template/ref3.C: New test. * g++.dg/template/nontype13.C: New test. PR c++/28346 * g++.dg/template/ptrmem17.C: New test. 2006-08-20 Mark Mitchell [EMAIL PROTECTED] * objcp-lang.c (objcp_tsubst_copy_and_build): Adjust call to tsubst_copy_and_build. Added: trunk/gcc/testsuite/g++.dg/template/ptrmem17.C trunk/gcc/testsuite/g++.dg/template/ref3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/tree.c trunk/gcc/objcp/ChangeLog trunk/gcc/objcp/objcp-lang.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/nontype13.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28346
[Bug c++/28341] [4.0/4.1/4.2 regression] ICE with references as template parameters
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-20 23:53 --- Subject: Bug 28341 Author: mmitchel Date: Sun Aug 20 23:53:10 2006 New Revision: 116276 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116276 Log: PR c++/28341 * tree.c (cast_valid_in_integral_constant_expression_p): New function. * cp-tree.h (tsubst_copy_and_build): Adjust prototype. * pt.c (tsubst_expr): Add integral_constant_expression_p parameter. (fold_non_dependent_expr): Adjust callers of tsubst_{expr,copy_and_build}. (tsubst_friend_function): Likewise. (tsubst_template_arg): Likewise. (tsubst_default_argument): Likewise. (tsubst_decl): Likewise. (tsubst): Likewise. (tsubst_omp_clasuses): Likewise. (regenerate_decl_fromp_template): Likewise. (instantiate_decl): Likewise. (tsubst_initializer_list): Likewise. (tsubst_enum): Likewise. (tsubst_expr): Use RECUR throughout. (tsubst_copy_and_build): Change definition of RECUR. Do not allow invalid casts in integral constant expressions. * parser.c (cp_parser_postfix_expression): Use cast_valid_in_integral_constant_expression_p. (cp_parser_cast_expression): Likewise. (cp_parser_functional_cast): Likewise. PR c++/28346 * pt.c (tsubst_qualified_id): Do not strip references from OFFSET_REFs. 2006-08-20 Mark Mitchell [EMAIL PROTECTED] PR c++/28341 * g++.dg/template/ref3.C: New test. * g++.dg/template/nontype13.C: New test. PR c++/28346 * g++.dg/template/ptrmem17.C: New test. 2006-08-20 Mark Mitchell [EMAIL PROTECTED] * objcp-lang.c (objcp_tsubst_copy_and_build): Adjust call to tsubst_copy_and_build. Added: trunk/gcc/testsuite/g++.dg/template/ptrmem17.C trunk/gcc/testsuite/g++.dg/template/ref3.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/cp-tree.h trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/tree.c trunk/gcc/objcp/ChangeLog trunk/gcc/objcp/objcp-lang.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/nontype13.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28341
[Bug c++/28341] [4.0/4.1 regression] ICE with references as template parameters
--- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-20 23:59 --- Fixed in 4.2.0. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE |with references as template |with references as template |parameters |parameters http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28341
[Bug c++/28346] [4.0/4.1 regression] ICE creating pointer-to-reference-member
--- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-20 23:59 --- Fixed in 4.2.0. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE |creating pointer-to-|creating pointer-to- |reference-member|reference-member http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28346
[Bug c++/28346] [4.0 regression] ICE creating pointer-to-reference-member
--- Comment #5 from mmitchel at gcc dot gnu dot org 2006-08-21 00:42 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.0/4.1 regression] ICE|[4.0 regression] ICE |creating pointer-to-|creating pointer-to- |reference-member|reference-member http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28346
[Bug c++/28346] [4.0 regression] ICE creating pointer-to-reference-member
--- Comment #6 from mmitchel at gcc dot gnu dot org 2006-08-21 00:42 --- Subject: Bug 28346 Author: mmitchel Date: Mon Aug 21 00:41:50 2006 New Revision: 116283 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116283 Log: PR c++/28346 * pt.c (tsubst_qualified_id): Do not strip references from OFFSET_REFs. PR c++/28346 * g++.dg/template/ptrmem17.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/ptrmem17.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/pt.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28346
[Bug middle-end/24998] [4.2 Regression] Build failure: undefined symbol __floatunsitf
--- Comment #32 from mmitchel at gcc dot gnu dot org 2006-08-22 22:05 --- Since this bug is now just about MIPS16 and FRV, and since the MIPS16 bits are said to be basically irrelevant, I've reprioritized this as P5. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P2 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24998
[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-25 17:03 --- Subject: Bug 28056 Author: mmitchel Date: Fri Aug 25 17:03:50 2006 New Revision: 116410 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116410 Log: PR c++/28056 * decl.c (grokdeclarator): Disallow declarations with qualified names in local scopes. PR c++/28056 * g++.dg/parse/local1.C: New test. Added: trunk/gcc/testsuite/g++.dg/parse/local1.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/other/qual1.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056
[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
--- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-25 17:04 --- Subject: Bug 28056 Author: mmitchel Date: Fri Aug 25 17:04:35 2006 New Revision: 116411 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116411 Log: PR c++/28056 * g++.dg/parse/local1.C: New test. * g++.dg/other/qual1.C: Tweak error marker. Modified: trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056
[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
--- Comment #5 from mmitchel at gcc dot gnu dot org 2006-08-25 17:05 --- Subject: Bug 28056 Author: mmitchel Date: Fri Aug 25 17:05:30 2006 New Revision: 116412 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116412 Log: PR c++/28056 * decl.c (grokdeclarator): Disallow declarations with qualified names in local scopes. PR c++/28056 * g++.dg/parse/local1.C: New test. * g++.dg/other/qual1.C: Tweak error marker. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/local1.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/decl.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/g++.dg/other/qual1.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056
[Bug c++/28056] [4.1/4.2 regression] enum accepted as scope
--- Comment #6 from mmitchel at gcc dot gnu dot org 2006-08-25 17:05 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28056
[Bug c++/28588] [4.0/4.1/4.2 Regression] static private function
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588
[Bug c++/28595] [4.1/4.2 regression] ICE with invalid const static variable
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28595] [4.1/4.2 regression] ICE with invalid const static variable
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-26 16:23 --- Subject: Bug 28595 Author: mmitchel Date: Sat Aug 26 16:23:33 2006 New Revision: 116468 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116468 Log: PR c++/28588 * class.c (resolve_address_of_overloaded_function): Add access_path parameter. Perform access checks. (instantiate_type): Adjust call to resolve_address_of_overloaded_function. Remove unnecessary code. * tree.c (is_overloaded_fn): Document. Return 2 when there are acutally multiple functions. (really_overloaded_fn): Use is_overloaded_fn. * mangle.c (write_expression): Handle BASELINKs. * cp-tree.h (really_overloaded_fn): Return bool. (baselink_for_fns): Declare. * search.c (lookup_member): Check access for single static functions here. * pt.c (convert_nontype_argument_function): Handle BASELINKs. (tsubst_copy_and_build): Generate BASELINKs for template-ids. * semantics.c (finish_call_expr): Use baselink_for_fns. (baselink_for_fns): New function. (finish_id_expression): Use it. * parser.c (cp_parser_template_argument): Don't strip BASELINKs. PR c++/28595 * pt.c (tsubst): Issue errors about attempts to create VLAs at template-instantiation time. PR c++/28588 * g++.dg/inherit/access6.C: New test. * g++.dg/inherit/access7.C: Likewise. PR c++/28595 * g++.dg/template/array15.C: New test. * g++.dg/template/crash2.C: Tweak error markers. Added: trunk/gcc/testsuite/g++.dg/inherit/access6.C trunk/gcc/testsuite/g++.dg/inherit/access7.C trunk/gcc/testsuite/g++.dg/template/array15.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/mangle.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/search.c trunk/gcc/cp/semantics.c trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/crash2.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28588] [4.0/4.1/4.2 Regression] static private function
--- Comment #2 from mmitchel at gcc dot gnu dot org 2006-08-26 16:23 --- Subject: Bug 28588 Author: mmitchel Date: Sat Aug 26 16:23:33 2006 New Revision: 116468 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116468 Log: PR c++/28588 * class.c (resolve_address_of_overloaded_function): Add access_path parameter. Perform access checks. (instantiate_type): Adjust call to resolve_address_of_overloaded_function. Remove unnecessary code. * tree.c (is_overloaded_fn): Document. Return 2 when there are acutally multiple functions. (really_overloaded_fn): Use is_overloaded_fn. * mangle.c (write_expression): Handle BASELINKs. * cp-tree.h (really_overloaded_fn): Return bool. (baselink_for_fns): Declare. * search.c (lookup_member): Check access for single static functions here. * pt.c (convert_nontype_argument_function): Handle BASELINKs. (tsubst_copy_and_build): Generate BASELINKs for template-ids. * semantics.c (finish_call_expr): Use baselink_for_fns. (baselink_for_fns): New function. (finish_id_expression): Use it. * parser.c (cp_parser_template_argument): Don't strip BASELINKs. PR c++/28595 * pt.c (tsubst): Issue errors about attempts to create VLAs at template-instantiation time. PR c++/28588 * g++.dg/inherit/access6.C: New test. * g++.dg/inherit/access7.C: Likewise. PR c++/28595 * g++.dg/template/array15.C: New test. * g++.dg/template/crash2.C: Tweak error markers. Added: trunk/gcc/testsuite/g++.dg/inherit/access6.C trunk/gcc/testsuite/g++.dg/inherit/access7.C trunk/gcc/testsuite/g++.dg/template/array15.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/mangle.c trunk/gcc/cp/parser.c trunk/gcc/cp/pt.c trunk/gcc/cp/search.c trunk/gcc/cp/semantics.c trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/crash2.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588
[Bug c++/28588] [4.0/4.1 Regression] static private function
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-08-26 16:34 --- Fixed in 4.2.0. Will not be fixed in previous releases. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED Summary|[4.0/4.1/4.2 Regression]|[4.0/4.1 Regression] static |static private function |private function http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28588
[Bug c++/28595] [4.1 regression] ICE with invalid const static variable
--- Comment #4 from mmitchel at gcc dot gnu dot org 2006-08-26 16:38 --- Fixed in 4.2.0. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Summary|[4.1/4.2 regression] ICE|[4.1 regression] ICE with |with invalid const static |invalid const static |variable|variable http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28639] [4.2 regression] ICE trying to print error on invalid template parameter
--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-08-26 16:40 --- Downgrading to P4 as the first error message is valid. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Keywords|ice-on-invalid-code | Priority|P2 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28639
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
--- Comment #8 from mmitchel at gcc dot gnu dot org 2006-08-26 16:53 --- We do have code to notice use-before-specialization errors. For example: template typename T void f(); void g() { fint(); } template void fint() {} results in an error. However, the code to initialize static variables is not generated until end-of-file, so we do not realize that we are in this situation. (See expand_static_init for the point at which we defer initialization.) -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058
[Bug c++/28595] [4.1 regression] ICE with invalid const static variable
--- Comment #5 from mmitchel at gcc dot gnu dot org 2006-08-26 17:14 --- Subject: Bug 28595 Author: mmitchel Date: Sat Aug 26 17:13:52 2006 New Revision: 116471 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116471 Log: PR c++/28595 * pt.c (tsubst): Issue errors about attempts to create VLAs at template-instantiation time. PR c++/28595 * g++.dg/template/array15.C: New test. * g++.dg/template/crash2.C: Tweak error markers. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/array15.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/pt.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash2.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28595] [4.1 regression] ICE with invalid const static variable
--- Comment #6 from mmitchel at gcc dot gnu dot org 2006-08-26 17:14 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu ||dot org Status|ASSIGNED|NEW http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28595] [4.1 regression] ICE with invalid const static variable
--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-08-26 17:16 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28595
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
--- Comment #9 from mmitchel at gcc dot gnu dot org 2006-08-27 17:45 --- Subject: Bug 28058 Author: mmitchel Date: Sun Aug 27 17:45:25 2006 New Revision: 116491 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116491 Log: PR c++/28058 * pt.c (register_specialization): Return error_mark_node for specialization-after-instantiation. * decl2.c (mark_used): Mark the main function used when one of its clones is used. PR c++/28058 * g++.dg/template/spec31.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/spec31.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl2.c trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
--- Comment #10 from mmitchel at gcc dot gnu dot org 2006-08-27 18:00 --- Subject: Bug 28058 Author: mmitchel Date: Sun Aug 27 17:59:55 2006 New Revision: 116492 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116492 Log: PR c++/28058 * pt.c (register_specialization): Return error_mark_node for specialization-after-instantiation. * decl2.c (mark_used): Mark the main function used when one of its clones is used. PR c++/28058 * g++.dg/template/spec31.C: New test. * g++.old-deja/g++.pt/spec9.C: Adjust error markers. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/spec31.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/decl2.c branches/gcc-4_1-branch/gcc/cp/pt.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog branches/gcc-4_1-branch/gcc/testsuite/g++.old-deja/g++.pt/spec9.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
--- Comment #11 from mmitchel at gcc dot gnu dot org 2006-08-27 18:00 --- Fixed in 4.1.2. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058
[Bug c++/26965] [4.0/4.1/4.2 Regression] Unnecessary debug info for unused consts in C++
--- Comment #11 from mmitchel at gcc dot gnu dot org 2006-08-27 19:02 --- I agree with Daniel's comments in Comment #9. The only reliable fix is to commit to unit-at-a-time, always, for all languages, independent of optimization. Then, after we decide what to emit (cgraph), we can know what debugging information to emit. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26965
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #25 from mmitchel at gcc dot gnu dot org 2006-08-27 20:25 --- Dan Berlin believes that Richard's patch in Comment #20 is the conservative fix. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug tree-optimization/28778] [4.0/4.1/4.2 Regression] alias bug with cast and call clobbered
--- Comment #26 from mmitchel at gcc dot gnu dot org 2006-08-27 20:28 --- I don't understand how TBAA is interacting with the may-alias information. In particular, TBAA doesn't say anything about casts; it says something about loads and stores. In particular, TBAA forbids accessing storage of type A through a pointer to type B, given certain constraints on A and B. It does not forbid casting an A* to a B*. Why are the optimizers pruning may-alias sets on casts? Why isn't the fix just to stop them from doing that? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28778
[Bug target/27287] [4.1/4.2 Regression] returning constant double
--- Comment #37 from mmitchel at gcc dot gnu dot org 2006-09-01 21:25 --- I'm marking this P2 since it's E500-specific (as far as I can tell). However, it's clearly a significant issue. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27287
[Bug middle-end/28690] [4.2 Regression] Performace problem with indexed load/stores on powerpc
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28690
[Bug target/28701] [4.1/4.2 regression] ABI test failures building libstdc++ on a glibc-2.4 based system
--- Comment #5 from mmitchel at gcc dot gnu dot org 2006-09-01 21:51 --- This is a P1 because we need to understand if there is actually ABI breakage. If there isn't, or if we can't confirm that there is, we'll downgrade this. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28701
[Bug middle-end/28831] [4.0/4.1/4.2 Regression] Aggregate copy not elided when using a return value as a pass-by-value parameter
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28831
[Bug debug/28834] [4.0/4.1/4.2 Regression] -O3 -g crashes sometimes when using may_alias and structs
--- Comment #11 from mmitchel at gcc dot gnu dot org 2006-09-01 21:53 --- Yet another problem showing problems with attributes on typedefs for structure types... -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28834
[Bug c++/28858] [4.0/4.1/4.2 regression] Algorithm to find the end of a template parameter list is flawed
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28858
[Bug c++/28861] [4.0/4.1/4.2 regression] ICE on invalid in-class specialization
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28861
[Bug middle-end/28862] [4.0/4.1/4.2 Regression] attribute ((aligned)) ignored on vector variables
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28862
[Bug tree-optimization/28868] [4.0/4.1/4.2 Regression] Not elimintating the PHIs which have the same agruments
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28868
[Bug testsuite/28870] [4.2 Regression] configuring, over-riding timeout values in testsuite
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28870
[Bug c++/28878] [4.0/4.1/4.2 regression] ICE using [ instead of {
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28878
[Bug c++/28879] [4.0/4.1/4.2 regression] ICE with variable-sized array in template function
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28879
[Bug middle-end/28884] [4.2 Regression] TARGET_FUNCTION_VALUE not documented
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28884
[Bug c++/28886] [4.1/4.2 regression] Template specialization with array rejected
--- Comment #3 from mmitchel at gcc dot gnu dot org 2006-09-01 22:19 --- There shouldn't be a NON_LVALUE_EXPR here at all; non-type template parameters are lvalues only if they have reference type. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28886
[Bug tree-optimization/28887] [4.2 Regression] rejects valid code (bitfields and loops) with -O1 -fprefetch-loop-arrays
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28887
[Bug tree-optimization/28888] [4.1/4.2 regression] ICE in tree check: expected cond_expr, have label_expr in simplify_using_initial_conditions, at tree-ssa-loop-niter.c
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2
[Bug tree-optimization/28900] [4.1/4.2 regression] ICE verify_stmts failed (invalid operand to unary operator)
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28900
[Bug c++/28903] [4.2 Regression] Rejects VLA in template class's member with using
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903
[Bug tree-optimization/28905] [4.2 regression] ICE in compare_name_with_value, at tree-vrp.c:3557
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28905
[Bug c++/28906] [4.2 regression] rejects valid arrays
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28906
[Bug tree-optimization/28915] [4.2 regression] ICE: tree check: expected class 'constant', have 'declaration' (var_decl) in build_vector, at tree.c:973
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28915
[Bug c++/28886] [4.1/4.2 regression] Template specialization with array rejected
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28886
[Bug c++/28903] [4.2 Regression] Rejects VLA in template class's member with using
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com |dot org | Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903
[Bug c++/28886] [4.1/4.2 regression] Template specialization with array rejected
--- Comment #12 from mmitchel at gcc dot gnu dot org 2006-09-07 01:04 --- Subject: Bug 28886 Author: mmitchel Date: Thu Sep 7 01:04:07 2006 New Revision: 116736 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116736 Log: PR c++/28903 * pt.c (tsubst): Use fold_non_dependent_expr to fold array dimensions. PR c++/28886 * pt.c (unify): Avoid unnecessary calls to fold_build2 for array dimensions. Added: trunk/gcc/testsuite/g++.dg/ext/vla3.C trunk/gcc/testsuite/g++.dg/template/array16.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28886
[Bug c++/28903] [4.2 Regression] Rejects VLA in template class's member with using
--- Comment #6 from mmitchel at gcc dot gnu dot org 2006-09-07 01:04 --- Subject: Bug 28903 Author: mmitchel Date: Thu Sep 7 01:04:07 2006 New Revision: 116736 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=116736 Log: PR c++/28903 * pt.c (tsubst): Use fold_non_dependent_expr to fold array dimensions. PR c++/28886 * pt.c (unify): Avoid unnecessary calls to fold_build2 for array dimensions. Added: trunk/gcc/testsuite/g++.dg/ext/vla3.C trunk/gcc/testsuite/g++.dg/template/array16.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903
[Bug c++/28903] [4.2 Regression] Rejects VLA in template class's member with using
--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-09-07 01:09 --- Fixed in 4.2.0. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28903
[Bug c++/28886] [4.1/4.2 regression] Template specialization with array rejected
--- Comment #13 from mmitchel at gcc dot gnu dot org 2006-09-07 01:10 --- Fixed in 4.2.0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28886
[Bug target/26015] [4.1/4.2 Regression] ICE during bootstrap for vax architecture
--- Comment #7 from mmitchel at gcc dot gnu dot org 2006-09-07 01:12 --- VAX is not a primary or secondary platform. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26015
[Bug target/26504] [4.1/4.2 Regression] compute_frame_pointer_to_cfa_displacement error for avr target with --with-dwarf2
--- Comment #13 from mmitchel at gcc dot gnu dot org 2006-09-07 01:13 --- AVR is not a primary or secondary platform. -- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26504
[Bug middle-end/27986] [4.0/4.1/4.2 Regression] jump to middle of loop on entry with using old version of an variable
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27986
[Bug c/28504] [4.0/4.1/4.2 regression] ICE with variable sized array
-- mmitchel at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28504