* [Bug c++/60894] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
@ 2014-04-22 9:33 ` redi at gcc dot gnu.org
2014-04-22 11:54 ` [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] " redi at gcc dot gnu.org
` (15 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-22 9:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-04-22
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Marcel Loose from comment #0)
> It seems as if the compiler thinks I'm forward declaring
> another struct S inside the declaration of D::doIt().
Not inside the declaration, but at global scope. That's what happens if you use
an elaborated-type-specifier such as "struct S" in a function declaration and
the type has not been declared previously (meaning the "struct" keyword is not
necessarily redundant in a function declaration).
In this case name lookup in the parameter-declaration-clause should find D::S
rather than introducing a new type.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
2014-04-22 9:33 ` [Bug c++/60894] " redi at gcc dot gnu.org
@ 2014-04-22 11:54 ` redi at gcc dot gnu.org
2014-04-22 12:02 ` redi at gcc dot gnu.org
` (14 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-22 11:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fabien at gcc dot gnu.org
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
The regression was caused by r181359
Fabien, could you take a look please? I think the code is valid.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
2014-04-22 9:33 ` [Bug c++/60894] " redi at gcc dot gnu.org
2014-04-22 11:54 ` [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] " redi at gcc dot gnu.org
@ 2014-04-22 12:02 ` redi at gcc dot gnu.org
2014-04-28 19:21 ` fabien at gcc dot gnu.org
` (13 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: redi at gcc dot gnu.org @ 2014-04-22 12:02 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced (whether the function is virtual or not is irrelevant):
struct B
{
struct S {};
};
struct D : B
{
using B::S;
void doIt(struct S&);
};
void D::doIt(struct S&)
{
}
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (2 preceding siblings ...)
2014-04-22 12:02 ` redi at gcc dot gnu.org
@ 2014-04-28 19:21 ` fabien at gcc dot gnu.org
2014-05-05 9:16 ` rguenth at gcc dot gnu.org
` (12 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: fabien at gcc dot gnu.org @ 2014-04-28 19:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
fabien at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |fabien at gcc dot gnu.org
--- Comment #4 from fabien at gcc dot gnu.org ---
(In reply to Jonathan Wakely from comment #2)
> The regression was caused by r181359
>
> Fabien, could you take a look please? I think the code is valid.
Thanks, I will look into it.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (3 preceding siblings ...)
2014-04-28 19:21 ` fabien at gcc dot gnu.org
@ 2014-05-05 9:16 ` rguenth at gcc dot gnu.org
2014-06-03 13:45 ` jason at gcc dot gnu.org
` (11 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-05 9:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Priority|P3 |P2
Target Milestone|--- |4.7.4
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (4 preceding siblings ...)
2014-05-05 9:16 ` rguenth at gcc dot gnu.org
@ 2014-06-03 13:45 ` jason at gcc dot gnu.org
2014-06-09 21:19 ` fabien at gcc dot gnu.org
` (10 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-03 13:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Any news?
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (5 preceding siblings ...)
2014-06-03 13:45 ` jason at gcc dot gnu.org
@ 2014-06-09 21:19 ` fabien at gcc dot gnu.org
2014-06-12 13:52 ` rguenth at gcc dot gnu.org
` (9 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: fabien at gcc dot gnu.org @ 2014-06-09 21:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #6 from fabien at gcc dot gnu.org ---
(In reply to Jason Merrill from comment #5)
> Any news?
I looked into it but did not manage to get it fixed. I will have another try
this week. Thanks for the reminder.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.7/4.8/4.9/4.10 Regression] Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (6 preceding siblings ...)
2014-06-09 21:19 ` fabien at gcc dot gnu.org
@ 2014-06-12 13:52 ` rguenth at gcc dot gnu.org
2014-09-12 17:39 ` [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in " jason at gcc dot gnu.org
` (8 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.4 |4.8.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (7 preceding siblings ...)
2014-06-12 13:52 ` rguenth at gcc dot gnu.org
@ 2014-09-12 17:39 ` jason at gcc dot gnu.org
2014-11-26 16:58 ` paolo.carlini at oracle dot com
` (7 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jason at gcc dot gnu.org @ 2014-09-12 17:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|4.10.0 |5.0
--- Comment #8 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to fabien from comment #6)
> I looked into it but did not manage to get it fixed. I will have another try
> this week. Thanks for the reminder.
Ping?
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (8 preceding siblings ...)
2014-09-12 17:39 ` [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in " jason at gcc dot gnu.org
@ 2014-11-26 16:58 ` paolo.carlini at oracle dot com
2014-12-01 11:56 ` fabien at gcc dot gnu.org
` (6 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-26 16:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fabien?
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (9 preceding siblings ...)
2014-11-26 16:58 ` paolo.carlini at oracle dot com
@ 2014-12-01 11:56 ` fabien at gcc dot gnu.org
2014-12-19 13:34 ` jakub at gcc dot gnu.org
` (5 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: fabien at gcc dot gnu.org @ 2014-12-01 11:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #11 from fabien at gcc dot gnu.org ---
I posted a patch here:
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg02190.html
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (10 preceding siblings ...)
2014-12-01 11:56 ` fabien at gcc dot gnu.org
@ 2014-12-19 13:34 ` jakub at gcc dot gnu.org
2015-02-13 23:57 ` paolo at gcc dot gnu.org
` (4 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-12-19 13:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.4 |4.8.5
--- Comment #12 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.4 has been released.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9/5 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (11 preceding siblings ...)
2014-12-19 13:34 ` jakub at gcc dot gnu.org
@ 2015-02-13 23:57 ` paolo at gcc dot gnu.org
2015-02-13 23:58 ` [Bug c++/60894] [4.8/4.9 " paolo.carlini at oracle dot com
` (3 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-02-13 23:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #13 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Feb 13 23:57:10 2015
New Revision: 220702
URL: https://gcc.gnu.org/viewcvs?rev=220702&root=gcc&view=rev
Log:
/cp
2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60894
* decl.c (lookup_and_check_tag): Use strip_using_decl.
/testsuite
2015-02-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/60894
* g++.dg/lookup/using54.C: New.
Added:
trunk/gcc/testsuite/g++.dg/lookup/using54.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (12 preceding siblings ...)
2015-02-13 23:57 ` paolo at gcc dot gnu.org
@ 2015-02-13 23:58 ` paolo.carlini at oracle dot com
2015-06-23 8:40 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
16 siblings, 0 replies; 18+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-02-13 23:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|fabien at gcc dot gnu.org |paolo.carlini at oracle dot com
Summary|[4.8/4.9/5 Regression] Use |[4.8/4.9 Regression] Use of
|of redundant struct keyword |redundant struct keyword in
|in function prototype |function prototype combined
|combined with using |with using statement causes
|statement causes |compilation error
|compilation error |
--- Comment #14 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed in mainline so far.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.8/4.9 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (13 preceding siblings ...)
2015-02-13 23:58 ` [Bug c++/60894] [4.8/4.9 " paolo.carlini at oracle dot com
@ 2015-06-23 8:40 ` rguenth at gcc dot gnu.org
2015-06-26 20:02 ` [Bug c++/60894] [4.9 " jakub at gcc dot gnu.org
2015-06-26 20:32 ` jakub at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-23 8:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.5 |4.9.3
--- Comment #15 from Richard Biener <rguenth at gcc dot gnu.org> ---
The gcc-4_8-branch is being closed, re-targeting regressions to 4.9.3.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.9 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (14 preceding siblings ...)
2015-06-23 8:40 ` rguenth at gcc dot gnu.org
@ 2015-06-26 20:02 ` jakub at gcc dot gnu.org
2015-06-26 20:32 ` jakub at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
--- Comment #16 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug c++/60894] [4.9 Regression] Use of redundant struct keyword in function prototype combined with using statement causes compilation error
2014-04-19 12:00 [Bug c++/60894] New: Use of redundant struct keyword in virtual function prototype combined with using statement causes compilation error loose at astron dot nl
` (15 preceding siblings ...)
2015-06-26 20:02 ` [Bug c++/60894] [4.9 " jakub at gcc dot gnu.org
@ 2015-06-26 20:32 ` jakub at gcc dot gnu.org
16 siblings, 0 replies; 18+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60894
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.9.3 |4.9.4
^ permalink raw reply [flat|nested] 18+ messages in thread