[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #9 from jakub at gcc dot gnu dot org 2007-10-26 12:07 --- Fixed. -- jakub at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #8 from jakub at gcc dot gnu dot org 2007-10-26 12:06 --- Subject: Bug 33744 Author: jakub Date: Fri Oct 26 12:06:31 2007 New Revision: 129650 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129650 Log: PR c++/33744 * parser.c (cp_parser_parenthesized_expression_list): Set greater_than_is_operator_p to true in between the parens. * g++.dg/template/arg6.C: New test. Added: branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/arg6.C Modified: branches/gcc-4_1-branch/gcc/cp/ChangeLog branches/gcc-4_1-branch/gcc/cp/parser.c branches/gcc-4_1-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #7 from jakub at gcc dot gnu dot org 2007-10-26 12:05 --- Subject: Bug 33744 Author: jakub Date: Fri Oct 26 12:04:57 2007 New Revision: 129649 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129649 Log: PR c++/33744 * parser.c (cp_parser_parenthesized_expression_list): Set greater_than_is_operator_p to true in between the parens. * g++.dg/template/arg6.C: New test. Added: branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/arg6.C Modified: branches/gcc-4_2-branch/gcc/cp/ChangeLog branches/gcc-4_2-branch/gcc/cp/parser.c branches/gcc-4_2-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #6 from jakub at gcc dot gnu dot org 2007-10-26 11:58 --- Subject: Bug 33744 Author: jakub Date: Fri Oct 26 11:57:46 2007 New Revision: 129648 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129648 Log: PR c++/33744 * parser.c (cp_parser_parenthesized_expression_list): Set greater_than_is_operator_p to true in between the parens. * g++.dg/template/arg6.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/arg6.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
-- jakub at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2007-10-12 15:21:49 |2007-10-15 12:53:50 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #5 from mdorey at bluearc dot com 2007-10-12 17:11 --- Adding extra parentheses, such that "bool (2 > 1)" becomes "bool ((2 > 1 ))", is a work-around. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744
[Bug c++/33744] [4.1/4.2/4.3 regression] function-style cast and '>' not allowed in template argument
--- Comment #4 from bangerth at dealii dot org 2007-10-12 15:21 --- (In reply to comment #3) > (I'm told that) these two function-style casts compile fine on 4.2.1: > > template > struct A { > }; > > A y; > A z; Uh, indeed, I see. This is weird indeed. So in other words, these codes compile: -- template struct A {}; A a; A b; A<(bool)(1>2)> c; -- but this one doesn't: -- template struct A {}; A2)> b; -- This is indeed very weird: it only fails with the function-style cast and the greater-than sign... Since this worked in gcc 3.3, this is a regression. W. -- bangerth at dealii dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords||rejects-valid Known to fail||4.1.2 4.2.0 4.3.0 Known to work||3.3.6 Last reconfirmed|-00-00 00:00:00 |2007-10-12 15:21:49 date|| Summary|function-style cast not |[4.1/4.2/4.3 regression] |allowed in template argument|function-style cast and '>' ||not allowed in template ||argument Target Milestone|--- |4.2.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33744