public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
@ 2014-06-18 17:01 ` redi at gcc dot gnu.org
2014-06-24 9:59 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-18 17:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-06-18
Summary|template parameter lists |[4.9/4.10 Regression]
|wrongly detected on |template parameter lists
|"struct" or "class" keyword |wrongly detected on
|on parameters |"struct" or "class" keyword
| |on parameters
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
struct Dummy
{};
template <typename T>
class Base
{
public: template< typename S>
void do_sth(S param, struct Dummy dummy);
};
template< typename T>
template< typename S>
//void Base<T>::do_sth(S param, Dummy) // working
void Base<T>::do_sth(S param, struct Dummy) // not working
{
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
2014-06-18 17:01 ` [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters redi at gcc dot gnu.org
@ 2014-06-24 9:59 ` paolo.carlini at oracle dot com
2014-06-24 10:39 ` redi at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-24 9:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |paolo.carlini at oracle dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Can somebody please bisect this?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
2014-06-18 17:01 ` [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters redi at gcc dot gnu.org
2014-06-24 9:59 ` paolo.carlini at oracle dot com
@ 2014-06-24 10:39 ` redi at gcc dot gnu.org
2014-06-24 10:40 ` redi at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-24 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
r208106
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2014-06-24 10:39 ` redi at gcc dot gnu.org
@ 2014-06-24 10:40 ` redi at gcc dot gnu.org
2014-06-24 10:51 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: redi at gcc dot gnu.org @ 2014-06-24 10:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |abutcher at gcc dot gnu.org
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Adam, the patch for PR60065 caused this regression, could you take a look
please?
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2014-06-24 10:40 ` redi at gcc dot gnu.org
@ 2014-06-24 10:51 ` paolo.carlini at oracle dot com
2014-06-24 19:11 ` abutcher at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-24 10:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|paolo.carlini at oracle dot com |
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks!
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2014-06-24 10:51 ` paolo.carlini at oracle dot com
@ 2014-06-24 19:11 ` abutcher at gcc dot gnu.org
2014-06-26 5:13 ` abutcher at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-06-24 19:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Adam Butcher <abutcher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |abutcher at gcc dot gnu.org
Target Milestone|--- |4.10.0
--- Comment #6 from Adam Butcher <abutcher at gcc dot gnu.org> ---
I'll have a look...
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2014-06-24 19:11 ` abutcher at gcc dot gnu.org
@ 2014-06-26 5:13 ` abutcher at gcc dot gnu.org
2014-06-26 5:22 ` abutcher at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 10+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-06-26 5:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
--- Comment #7 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Thu Jun 26 05:12:52 2014
New Revision: 212008
URL: https://gcc.gnu.org/viewcvs?rev=212008&root=gcc&view=rev
Log:
Fix PR c++/61537
* parser.c (cp_parser_elaborated_type_specifier): Only consider template
parameter lists outside of function parameter scope.
* g++.dg/template/pr61537.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/template/pr61537.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2014-06-26 5:13 ` abutcher at gcc dot gnu.org
@ 2014-06-26 5:22 ` abutcher at gcc dot gnu.org
2014-06-26 18:34 ` abutcher at gcc dot gnu.org
2014-06-26 18:36 ` abutcher at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-06-26 5:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
Adam Butcher <abutcher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #8 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Fixed in 4.10
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2014-06-26 5:22 ` abutcher at gcc dot gnu.org
@ 2014-06-26 18:34 ` abutcher at gcc dot gnu.org
2014-06-26 18:36 ` abutcher at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-06-26 18:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
--- Comment #9 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Author: abutcher
Date: Thu Jun 26 18:33:57 2014
New Revision: 212045
URL: https://gcc.gnu.org/viewcvs?rev=212045&root=gcc&view=rev
Log:
Fix PR c++/61537
* parser.c (cp_parser_elaborated_type_specifier): Only consider template
parameter lists outside of function parameter scope.
* g++.dg/template/pr61537.C: New testcase.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/pr61537.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/parser.c
branches/gcc-4_9-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2014-06-26 18:34 ` abutcher at gcc dot gnu.org
@ 2014-06-26 18:36 ` abutcher at gcc dot gnu.org
9 siblings, 0 replies; 10+ messages in thread
From: abutcher at gcc dot gnu.org @ 2014-06-26 18:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61537
--- Comment #10 from Adam Butcher <abutcher at gcc dot gnu.org> ---
Fixed in 4.9.1
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-06-26 18:36 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-61537-4@http.gcc.gnu.org/bugzilla/>
2014-06-18 17:01 ` [Bug c++/61537] [4.9/4.10 Regression] template parameter lists wrongly detected on "struct" or "class" keyword on parameters redi at gcc dot gnu.org
2014-06-24 9:59 ` paolo.carlini at oracle dot com
2014-06-24 10:39 ` redi at gcc dot gnu.org
2014-06-24 10:40 ` redi at gcc dot gnu.org
2014-06-24 10:51 ` paolo.carlini at oracle dot com
2014-06-24 19:11 ` abutcher at gcc dot gnu.org
2014-06-26 5:13 ` abutcher at gcc dot gnu.org
2014-06-26 5:22 ` abutcher at gcc dot gnu.org
2014-06-26 18:34 ` abutcher at gcc dot gnu.org
2014-06-26 18:36 ` abutcher at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).