* [Bug c++/57] [DR 325] GCC can't parse a non-parenthized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
@ 2003-10-18 16:56 ` lerdsuwa at gcc dot gnu dot org
2004-04-29 14:48 ` [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized " bangerth at dealii dot org
` (15 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2003-10-18 16:56 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
lerdsuwa at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jfranzoy at yahoo dot com
| |dot ar
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2003-10-18 16:55 -------
*** Bug 12531 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
2003-10-18 16:56 ` [Bug c++/57] [DR 325] GCC can't parse a non-parenthized comma in a template-id within a default argument lerdsuwa at gcc dot gnu dot org
@ 2004-04-29 14:48 ` bangerth at dealii dot org
2004-04-30 1:46 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: bangerth at dealii dot org @ 2004-04-29 14:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2004-04-29 14:22 -------
*** Bug 15201 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |uwe dot arzt at robots dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
2003-10-18 16:56 ` [Bug c++/57] [DR 325] GCC can't parse a non-parenthized comma in a template-id within a default argument lerdsuwa at gcc dot gnu dot org
2004-04-29 14:48 ` [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized " bangerth at dealii dot org
@ 2004-04-30 1:46 ` pinskia at gcc dot gnu dot org
2004-04-30 2:54 ` igodard at pacbell dot net
` (13 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 1:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 01:08 -------
*** Bug 15217 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |igodard at pacbell dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (2 preceding siblings ...)
2004-04-30 1:46 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 2:54 ` igodard at pacbell dot net
2004-04-30 14:50 ` bangerth at ices dot utexas dot edu
` (12 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: igodard at pacbell dot net @ 2004-04-30 2:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From igodard at pacbell dot net 2004-04-30 01:47 -------
There is at least one case where this construct is used in the standard (at least in the oldish references I have access to). In <bitset> there is (in the gcc 3.4 include files) the following function:
template<class _CharT, class _Traits, class _Alloc>
bitset(const basic_string<_CharT, _Traits, _Alloc>& __s,
size_t __pos, size_t __n) : _Base()
However, according to the SGI documentation this should be:
template<class Char, class Traits, class Alloc>
explicit
bitset(const basic_string<Char,Traits,Alloc>& s,
size_t pos = 0,
size_t n =
basic_string<Char,Traits,Alloc>::npos)
which is also what C++PL 3rd Edition shows. The initializer "npos" causes gcc to fail with this bug.
FWIW
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (3 preceding siblings ...)
2004-04-30 2:54 ` igodard at pacbell dot net
@ 2004-04-30 14:50 ` bangerth at ices dot utexas dot edu
2004-04-30 16:44 ` llewelly
2004-04-30 16:44 ` llewelly at xmission dot com
` (11 subsequent siblings)
16 siblings, 1 reply; 40+ messages in thread
From: bangerth at ices dot utexas dot edu @ 2004-04-30 14:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at ices dot utexas dot edu 2004-04-30 14:01 -------
Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
How funny, the reference is indeed in the standard, it's the last declaration
on page 502, section 23.3.5.1. Maybe someone can see if there is a defect
report, though I can't seem to find one if it exists.
It's easy to work around, though, by just duplicating the constructor, and
having one take the third argument and one not taking it.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ices.utexas.edu
www: http://www.ices.utexas.edu/~bangerth/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* Re: [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
2004-04-30 14:50 ` bangerth at ices dot utexas dot edu
@ 2004-04-30 16:44 ` llewelly
0 siblings, 0 replies; 40+ messages in thread
From: llewelly @ 2004-04-30 16:44 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
"bangerth at ices dot utexas dot edu" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From bangerth at ices dot utexas dot edu 2004-04-30 14:01 -------
> Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
>
>
> How funny, the reference is indeed in the standard, it's the last declaration
> on page 502, section 23.3.5.1. Maybe someone can see if there is a defect
> report, though I can't seem to find one if it exists.
>
> It's easy to work around, though, by just duplicating the constructor, and
> having one take the third argument and one not taking it.
[snip]
The default argument expression can also be parenthesized:
template<class charT, class traits, class Allocator>
explicit
bitset(const basic_string<charT, traits, Allocator>& str,
typename basic_string<charT, traits, Allocator>::size_type pos =0,
typename basic_string<charT, traits, Allocator>::size_type n =
(basic_string<charT, traits, Allocator>::npos));
^-extra parentheses--------------------------^
which is perhaps easier.
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (4 preceding siblings ...)
2004-04-30 14:50 ` bangerth at ices dot utexas dot edu
@ 2004-04-30 16:44 ` llewelly at xmission dot com
2004-04-30 17:07 ` sebor at roguewave dot com
` (10 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: llewelly at xmission dot com @ 2004-04-30 16:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From llewelly at xmission dot com 2004-04-30 16:36 -------
Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
"bangerth at ices dot utexas dot edu" <gcc-bugzilla@gcc.gnu.org> writes:
> ------- Additional Comments From bangerth at ices dot utexas dot edu 2004-04-30 14:01 -------
> Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
>
>
> How funny, the reference is indeed in the standard, it's the last declaration
> on page 502, section 23.3.5.1. Maybe someone can see if there is a defect
> report, though I can't seem to find one if it exists.
>
> It's easy to work around, though, by just duplicating the constructor, and
> having one take the third argument and one not taking it.
[snip]
The default argument expression can also be parenthesized:
template<class charT, class traits, class Allocator>
explicit
bitset(const basic_string<charT, traits, Allocator>& str,
typename basic_string<charT, traits, Allocator>::size_type pos =0,
typename basic_string<charT, traits, Allocator>::size_type n =
(basic_string<charT, traits, Allocator>::npos));
^-extra parentheses--------------------------^
which is perhaps easier.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (5 preceding siblings ...)
2004-04-30 16:44 ` llewelly at xmission dot com
@ 2004-04-30 17:07 ` sebor at roguewave dot com
2004-04-30 20:13 ` igodard at pacbell dot net
` (9 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: sebor at roguewave dot com @ 2004-04-30 17:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sebor at roguewave dot com 2004-04-30 17:01 -------
(In reply to comment #14)
> Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a
template-id within a default argument
>
>
> How funny, the reference is indeed in the standard, it's the last declaration
> on page 502, section 23.3.5.1.
Sure. That's what the test case was reduced from -- the declaration of the
bitset template ctor :) Has there been any progress on the resolution to issue
325? If the CWG is leaning toward the suggested resolution we might want to file
a library issue to have the bitset ctor declaration changed.
Martin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (6 preceding siblings ...)
2004-04-30 17:07 ` sebor at roguewave dot com
@ 2004-04-30 20:13 ` igodard at pacbell dot net
2004-06-13 22:55 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: igodard at pacbell dot net @ 2004-04-30 20:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From igodard at pacbell dot net 2004-04-30 19:55 -------
Bangaerth suggested a workaround by duplicating the constructor, one with and one without the argument. But there's an even easier workaround: somply parenthesize the default value. I'd suggest that gcc should do this - although the lexical text of the default is not the same as in the standard, this solutiion preserves the actual default values required by the standard and compiles without error.
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (7 preceding siblings ...)
2004-04-30 20:13 ` igodard at pacbell dot net
@ 2004-06-13 22:55 ` pinskia at gcc dot gnu dot org
2004-06-22 2:15 ` bje at gcc dot gnu dot org
` (7 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-13 22:55 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-13 22:55 -------
*** Bug 15980 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |schoenebeck at software-
| |engineering dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (8 preceding siblings ...)
2004-06-13 22:55 ` pinskia at gcc dot gnu dot org
@ 2004-06-22 2:15 ` bje at gcc dot gnu dot org
2004-06-22 2:54 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: bje at gcc dot gnu dot org @ 2004-06-22 2:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bje at gcc dot gnu dot org 2004-06-22 02:15 -------
I'm not sure why this PR was suspended. The problem persists in the new C++
parser. Should the bug be re-opened?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (9 preceding siblings ...)
2004-06-22 2:15 ` bje at gcc dot gnu dot org
@ 2004-06-22 2:54 ` pinskia at gcc dot gnu dot org
2004-11-27 15:10 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-22 2:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-22 02:54 -------
The reason why this is still supsended as it is waiting on the DR report to be resolved.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (10 preceding siblings ...)
2004-06-22 2:54 ` pinskia at gcc dot gnu dot org
@ 2004-11-27 15:10 ` pinskia at gcc dot gnu dot org
2004-11-27 16:04 ` prez at neuromancy dot net
` (4 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-27 15:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-27 15:10 -------
*** Bug 18688 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |prez at neuromancy dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (11 preceding siblings ...)
2004-11-27 15:10 ` pinskia at gcc dot gnu dot org
@ 2004-11-27 16:04 ` prez at neuromancy dot net
2004-11-29 9:26 ` nathan at gcc dot gnu dot org
` (3 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: prez at neuromancy dot net @ 2004-11-27 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From prez at neuromancy dot net 2004-11-27 16:04 -------
(In reply to comment #21)
> *** Bug 18688 has been marked as a duplicate of this bug. ***
Is it really a dupe? The bug I raised only involved a templated argument, the
class with the member function is not templated. Besides which, if its invalid
as a member function, why is it not invalid stand-alone? And why should
typedef's get around it?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (12 preceding siblings ...)
2004-11-27 16:04 ` prez at neuromancy dot net
@ 2004-11-29 9:26 ` nathan at gcc dot gnu dot org
2005-04-06 14:10 ` liu_gw at 163 dot com
` (2 subsequent siblings)
16 siblings, 0 replies; 40+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-11-29 9:26 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-11-29 09:26 -------
(In reply to comment #22)
> (In reply to comment #21)
> > *** Bug 18688 has been marked as a duplicate of this bug. ***
>
> Is it really a dupe?
yes.
> The bug I raised only involved a templated argument, the
> class with the member function is not templated.
yes
> Besides which, if its invalid
> as a member function, why is it not invalid stand-alone?
because non-member's default args can be parsed immediately, member's
default args cannot be.
> And why should typedef's get around it?
because those do not have commas in them
read DR325 for gory details
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (13 preceding siblings ...)
2004-11-29 9:26 ` nathan at gcc dot gnu dot org
@ 2005-04-06 14:10 ` liu_gw at 163 dot com
2005-04-06 15:18 ` pinskia at gcc dot gnu dot org
2005-04-18 18:42 ` pinskia at gcc dot gnu dot org
16 siblings, 0 replies; 40+ messages in thread
From: liu_gw at 163 dot com @ 2005-04-06 14:10 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From liu_gw at 163 dot com 2005-04-06 14:10 -------
(From update of attachment 8546)
gcc v3.4.3:
gcc/parser.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (14 preceding siblings ...)
2005-04-06 14:10 ` liu_gw at 163 dot com
@ 2005-04-06 15:18 ` pinskia at gcc dot gnu dot org
2005-04-18 18:42 ` pinskia at gcc dot gnu dot org
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-06 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-06 15:18 -------
(In reply to comment #26)
> (From update of attachment 8546)
> gcc v3.4.3:
> gcc/parser.c
I should note this bug is suspended. This is because the standard is unclear at what is the correct
behavior. See DR 325 for all the details.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |liu_gw at 163 dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <20000305032601.57.martin@loewis.home.cs.tu-berlin.de>
` (15 preceding siblings ...)
2005-04-06 15:18 ` pinskia at gcc dot gnu dot org
@ 2005-04-18 18:42 ` pinskia at gcc dot gnu dot org
16 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-18 18:42 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-04-18 18:42 -------
*** Bug 21084 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |sstrasser at systemhaus-
| |gruppe dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
@ 2005-11-06 4:38 ` pinskia at gcc dot gnu dot org
2006-04-05 1:57 ` pinskia at gcc dot gnu dot org
` (17 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-06 4:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #29 from pinskia at gcc dot gnu dot org 2005-11-06 04:37 -------
*** Bug 24690 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |faheem at email dot unc dot
| |edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
2005-11-06 4:38 ` pinskia at gcc dot gnu dot org
@ 2006-04-05 1:57 ` pinskia at gcc dot gnu dot org
2006-09-14 15:00 ` pinskia at gcc dot gnu dot org
` (16 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-05 1:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #30 from pinskia at gcc dot gnu dot org 2006-04-05 01:57 -------
*** Bug 27038 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |irving at cs dot stanford
| |dot edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
2005-11-06 4:38 ` pinskia at gcc dot gnu dot org
2006-04-05 1:57 ` pinskia at gcc dot gnu dot org
@ 2006-09-14 15:00 ` pinskia at gcc dot gnu dot org
2006-12-04 22:51 ` pinskia at gcc dot gnu dot org
` (15 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-14 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #31 from pinskia at gcc dot gnu dot org 2006-09-14 15:00 -------
*** Bug 29084 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2006-09-14 15:00 ` pinskia at gcc dot gnu dot org
@ 2006-12-04 22:51 ` pinskia at gcc dot gnu dot org
2007-01-01 19:02 ` pinskia at gcc dot gnu dot org
` (14 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-12-04 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #32 from pinskia at gcc dot gnu dot org 2006-12-04 22:51 -------
*** Bug 30069 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppluzhnikov at charter dot
| |net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-12-04 22:51 ` pinskia at gcc dot gnu dot org
@ 2007-01-01 19:02 ` pinskia at gcc dot gnu dot org
2007-10-12 18:31 ` pcarlini at suse dot de
` (13 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-01 19:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #33 from pinskia at gcc dot gnu dot org 2007-01-01 19:02 -------
*** Bug 30344 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Bernd dot Donner at gmx dot
| |net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2007-01-01 19:02 ` pinskia at gcc dot gnu dot org
@ 2007-10-12 18:31 ` pcarlini at suse dot de
2007-10-24 15:46 ` jason at gcc dot gnu dot org
` (12 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pcarlini at suse dot de @ 2007-10-12 18:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #34 from pcarlini at suse dot de 2007-10-12 18:31 -------
*** Bug 33754 has been marked as a duplicate of this bug. ***
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |photon at seznam dot cz
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2007-10-12 18:31 ` pcarlini at suse dot de
@ 2007-10-24 15:46 ` jason at gcc dot gnu dot org
2007-10-24 19:48 ` jason at gcc dot gnu dot org
` (11 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-10-24 15:46 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|SUSPENDED |ASSIGNED
Last reconfirmed|2006-03-27 05:40:24 |2007-10-24 15:46:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2007-10-24 15:46 ` jason at gcc dot gnu dot org
@ 2007-10-24 19:48 ` jason at gcc dot gnu dot org
2008-04-28 20:45 ` jason at gcc dot gnu dot org
` (10 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: jason at gcc dot gnu dot org @ 2007-10-24 19:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #35 from jason at gcc dot gnu dot org 2007-10-24 19:48 -------
Created an attachment (id=14407)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=14407&action=view)
updated patch
Here's a cleaned up version of Liu Guanwei's patch that passes regression
testing with current 4.3 sources. I've pinged him for a copyright assignment
so I can check it in.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8545 is|0 |1
obsolete| |
Attachment #8546 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2007-10-24 19:48 ` jason at gcc dot gnu dot org
@ 2008-04-28 20:45 ` jason at gcc dot gnu dot org
2008-08-10 16:03 ` manu at gcc dot gnu dot org
` (9 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-04-28 20:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #36 from jason at gcc dot gnu dot org 2008-04-28 20:44 -------
Subject: Bug 57
Author: jason
Date: Mon Apr 28 20:43:27 2008
New Revision: 134762
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=134762
Log:
PR c++/57
* parser.c (cp_parser_parameter_declaration): Handle < ambiguity
in default arguments.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/g++.old-deja/g++.pt/defarg8.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2008-04-28 20:45 ` jason at gcc dot gnu dot org
@ 2008-08-10 16:03 ` manu at gcc dot gnu dot org
2008-08-10 18:23 ` pinskia at gmail dot com
` (8 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-10 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #37 from manu at gcc dot gnu dot org 2008-08-10 16:02 -------
I thinks this is fixed and should be closed.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2008-08-10 16:03 ` manu at gcc dot gnu dot org
@ 2008-08-10 18:23 ` pinskia at gmail dot com
2008-08-10 18:32 ` manu at gcc dot gnu dot org
` (7 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gmail dot com @ 2008-08-10 18:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #38 from pinskia at gmail dot com 2008-08-10 18:22 -------
Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a
template-id within a default argument
Sent from my iPhone
On Aug 10, 2008, at 9:02, "manu at gcc dot gnu dot org"
<gcc-bugzilla@gcc.gnu.org
> wrote:
>
>
> ------- Comment #37 from manu at gcc dot gnu dot org 2008-08-10
> 16:02 -------
> I thinks this is fixed and should be closed.
It is fixed but the defect report against the C++ standard is still
open so ...
-- Pinski
>
>
>
> --
>
> manu at gcc dot gnu dot org changed:
>
> What |Removed |Added
> ---
> ---
> ----------------------------------------------------------------------
> CC| |manu at gcc dot gnu
> dot org
>
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
>
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2008-08-10 18:23 ` pinskia at gmail dot com
@ 2008-08-10 18:32 ` manu at gcc dot gnu dot org
2009-01-06 6:03 ` zerger at gmail dot com
` (6 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: manu at gcc dot gnu dot org @ 2008-08-10 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #39 from manu at gcc dot gnu dot org 2008-08-10 18:31 -------
So then it should be SUSPENDED until the DR is solved.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2008-08-10 18:32 ` manu at gcc dot gnu dot org
@ 2009-01-06 6:03 ` zerger at gmail dot com
2009-01-06 15:46 ` bangerth at dealii dot org
` (5 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: zerger at gmail dot com @ 2009-01-06 6:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #40 from zerger at gmail dot com 2009-01-06 06:03 -------
(In reply to comment #38)
> Subject: Re: [DR 325] GCC can't parse a non-parenthesized comma in a
> template-id within a default argument
>
> It is fixed but the defect report against the C++ standard is still
> open so ...
> -- Pinski
>
Hello.
First, I'm new in gcc.
I'm moving our project on gcc and I meet this bug.
My code:
template <typename T, bool F>
struct sp
{
sp ()
{
}
};
struct X
{
typedef sp <X, true> sp_x;
//X (sp_x x = sp_x ()) // OK
//X (sp <X, true> x = (sp <X, true> ())) // OK
X (sp <X, true> x = sp <X, true> ()) // ERROR
{
}
};
My gcc output:
g++ -o /home/zerg/bs/plugins/test.o -c -v -save-temps
/home/zerg/bs/plugins/test.cpp
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla
--enable-bootstrap --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
--enable-libgcj-multifile --enable-java-maintainer-mode
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib
--with-cpu=generic --build=i386-redhat-linux
Thread model: posix
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC)
COLLECT_GCC_OPTIONS='-o' '/home/zerg/bs/plugins/test.o' '-c' '-v' '-save-temps'
'-shared-libgcc' '-mtune=generic'
/usr/libexec/gcc/i386-redhat-linux/4.3.2/cc1plus -E -quiet -v -D_GNU_SOURCE
/home/zerg/bs/plugins/test.cpp -mtune=generic -fpch-preprocess -o test.ii
ignoring nonexistent directory
"/usr/lib/gcc/i386-redhat-linux/4.3.2/include-fixed"
ignoring nonexistent directory
"/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/i386-redhat-linux
/usr/lib/gcc/i386-redhat-linux/4.3.2/../../../../include/c++/4.3.2/backward
/usr/local/include
/usr/lib/gcc/i386-redhat-linux/4.3.2/include
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-o' '/home/zerg/bs/plugins/test.o' '-c' '-v' '-save-temps'
'-shared-libgcc' '-mtune=generic'
/usr/libexec/gcc/i386-redhat-linux/4.3.2/cc1plus -fpreprocessed test.ii -quiet
-dumpbase test.cpp -mtune=generic -auxbase-strip /home/zerg/bs/plugins/test.o
-version -o test.s
GNU C++ (GCC) version 4.3.2 20081105 (Red Hat 4.3.2-7) (i386-redhat-linux)
compiled by GNU C version 4.3.2 20081105 (Red Hat 4.3.2-7), GMP version
4.2.2, MPFR version 2.3.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: a43cbcaee4cf8f26ffea6bb0c2e68739
/home/zerg/bs/plugins/test.cpp:23: error: expected identifier before 'true'
/home/zerg/bs/plugins/test.cpp:23: error: expected ',' or '...' before 'true'
/home/zerg/bs/plugins/test.cpp:23: error: wrong number of template arguments
(1, should be 2)
/home/zerg/bs/plugins/test.cpp:4: error: provided for 'template<class T, bool
F> struct sp'
/home/zerg/bs/plugins/test.cpp:23: error: default argument missing for
parameter 2 of 'X::X(sp<X, true>, int)'
I read all comments and saw a patch. But I don't know how I can fix my gcc with
this patch.
--
zerger at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zerger at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (12 preceding siblings ...)
2009-01-06 6:03 ` zerger at gmail dot com
@ 2009-01-06 15:46 ` bangerth at dealii dot org
2009-03-10 23:01 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: bangerth at dealii dot org @ 2009-01-06 15:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #41 from bangerth at dealii dot org 2009-01-06 15:46 -------
(In reply to comment #40)
> I read all comments and saw a patch. But I don't know how I can fix my gcc with
> this patch.
The easiest way is to wait for gcc 4.4.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (13 preceding siblings ...)
2009-01-06 15:46 ` bangerth at dealii dot org
@ 2009-03-10 23:01 ` pinskia at gcc dot gnu dot org
2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-03-10 23:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #42 from pinskia at gcc dot gnu dot org 2009-03-10 23:01 -------
*** Bug 39426 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aran at 100acres dot us
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (14 preceding siblings ...)
2009-03-10 23:01 ` pinskia at gcc dot gnu dot org
@ 2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
2009-09-01 22:11 ` keith dot g dot erickson at lmco dot com
` (2 subsequent siblings)
18 siblings, 0 replies; 40+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-04-28 16:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #43 from pinskia at gcc dot gnu dot org 2009-04-28 16:51 -------
*** Bug 39948 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |Lee at Gregory dot uk dot
| |net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (15 preceding siblings ...)
2009-04-28 16:52 ` pinskia at gcc dot gnu dot org
@ 2009-09-01 22:11 ` keith dot g dot erickson at lmco dot com
2009-09-01 22:26 ` paolo dot carlini at oracle dot com
2009-12-23 7:09 ` sodiumgood at gmail dot com
18 siblings, 0 replies; 40+ messages in thread
From: keith dot g dot erickson at lmco dot com @ 2009-09-01 22:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #44 from keith dot g dot erickson at lmco dot com 2009-09-01 22:11 -------
(In reply to comment #41)
> (In reply to comment #40)
> > I read all comments and saw a patch. But I don't know how I can fix my gcc with
> > this patch.
>
> The easiest way is to wait for gcc 4.4.
> W.
>
GCC 4.4 came and went. Now what?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (16 preceding siblings ...)
2009-09-01 22:11 ` keith dot g dot erickson at lmco dot com
@ 2009-09-01 22:26 ` paolo dot carlini at oracle dot com
2009-12-23 7:09 ` sodiumgood at gmail dot com
18 siblings, 0 replies; 40+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-09-01 22:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #45 from paolo dot carlini at oracle dot com 2009-09-01 22:26 -------
(In reply to comment #44)
> GCC 4.4 came and went. Now what?
Now what what? The issue is fixed for 4.4, and I just double checked myself the
original testcase and the one in Comment #40, both compile fine. Comments #38
and #39 explain why technically the PR must remain suspended for now. So?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread
* [Bug c++/57] [DR 325] GCC can't parse a non-parenthesized comma in a template-id within a default argument
[not found] <bug-57-797@http.gcc.gnu.org/bugzilla/>
` (17 preceding siblings ...)
2009-09-01 22:26 ` paolo dot carlini at oracle dot com
@ 2009-12-23 7:09 ` sodiumgood at gmail dot com
18 siblings, 0 replies; 40+ messages in thread
From: sodiumgood at gmail dot com @ 2009-12-23 7:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #46 from sodiumgood at gmail dot com 2009-12-23 07:09 -------
*** Bug 42473 has been marked as a duplicate of this bug. ***
--
sodiumgood at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sodiumgood at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57
^ permalink raw reply [flat|nested] 40+ messages in thread