public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <20030402010601.10291.sebor@roguewave.com>
@ 2003-06-07 16:47 ` pinskia@physics.uc.edu
2003-08-01 20:36 ` pinskia at physics dot uc dot edu
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: pinskia@physics.uc.edu @ 2003-06-07 16:47 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=10291
pinskia@physics.uc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |wrong-code
Last reconfirmed|0000-00-00 00:00:00 |2003-06-07 16:47:06
date| |
------- Additional Comments From pinskia@physics.uc.edu 2003-06-07 16:47 -------
Still happens on the mainline (20030607).
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <20030402010601.10291.sebor@roguewave.com>
2003-06-07 16:47 ` [Bug c++/10291] error referencing a static local from a local struct in template code pinskia@physics.uc.edu
@ 2003-08-01 20:36 ` pinskia at physics dot uc dot edu
2004-02-03 7:49 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-08-01 20:36 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=10291
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2003-06-07 16:47:06 |2003-08-01 20:36:52
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-08-01 20:36 -------
I think the problem is that i is not being mangled.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <20030402010601.10291.sebor@roguewave.com>
2003-06-07 16:47 ` [Bug c++/10291] error referencing a static local from a local struct in template code pinskia@physics.uc.edu
2003-08-01 20:36 ` pinskia at physics dot uc dot edu
@ 2004-02-03 7:49 ` pinskia at gcc dot gnu dot org
2004-04-30 2:13 ` pinskia at gcc dot gnu dot org
2004-04-30 2:38 ` sebor at roguewave dot com
4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-02-03 7:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-02-03 07:49 -------
This is no longer rejected but produces wrong code refering to the non-mangled i instead of the
mangled i.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <20030402010601.10291.sebor@roguewave.com>
` (2 preceding siblings ...)
2004-02-03 7:49 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 2:13 ` pinskia at gcc dot gnu dot org
2004-04-30 2:38 ` sebor at roguewave dot com
4 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-30 2:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-30 01:29 -------
I almost think this is related to DR 191 <http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/
cwg_active.html#191>.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <20030402010601.10291.sebor@roguewave.com>
` (3 preceding siblings ...)
2004-04-30 2:13 ` pinskia at gcc dot gnu dot org
@ 2004-04-30 2:38 ` sebor at roguewave dot com
4 siblings, 0 replies; 11+ messages in thread
From: sebor at roguewave dot com @ 2004-04-30 2:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From sebor at roguewave dot com 2004-04-30 01:46 -------
(In reply to comment #5)
> I almost think this is related to DR 191
<http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/cwg_active.html#191>.
I don't see it. The original test case seems to be covered by bullet 4:
if X is a local class (9.8) or is a nested class of a local class,
before the definition of class X in a block enclosing the definition
of class X
What makes you think it's related?
Martin
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2013-03-02 11:18 ` paolo at gcc dot gnu.org
@ 2013-03-02 11:19 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-02 11:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.8.0
--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-02 11:19:06 UTC ---
Done.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 13:55 ` bangerth at gmail dot com
2013-03-02 11:06 ` paolo.carlini at oracle dot com
@ 2013-03-02 11:18 ` paolo at gcc dot gnu.org
2013-03-02 11:19 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 11+ messages in thread
From: paolo at gcc dot gnu.org @ 2013-03-02 11:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
--- Comment #11 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2013-03-02 11:17:48 UTC ---
Author: paolo
Date: Sat Mar 2 11:17:44 2013
New Revision: 196405
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196405
Log:
2013-03-02 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52688
* g++.dg/template/static33.C: New.
* g++.dg/template/static34.C: Likewise.
PR c++/10291
* g++.dg/template/static35.C: New.
Added:
trunk/gcc/testsuite/g++.dg/template/static33.C
trunk/gcc/testsuite/g++.dg/template/static34.C
trunk/gcc/testsuite/g++.dg/template/static35.C
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 13:55 ` bangerth at gmail dot com
@ 2013-03-02 11:06 ` paolo.carlini at oracle dot com
2013-03-02 11:18 ` paolo at gcc dot gnu.org
2013-03-02 11:19 ` paolo.carlini at oracle dot com
3 siblings, 0 replies; 11+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-02 11:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-02 11:05:45 UTC ---
This is fixed for 4.8.0. I'm adding the testcase and closing the PR.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-09 13:55 ` bangerth at gmail dot com
2013-03-02 11:06 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 11+ messages in thread
From: bangerth at gmail dot com @ 2011-10-09 13:55 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
Wolfgang Bangerth <bangerth at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bangerth at gmail dot com
--- Comment #9 from Wolfgang Bangerth <bangerth at gmail dot com> 2011-10-09 13:55:10 UTC ---
Still happens with gcc4.5.1.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-1186@http.gcc.gnu.org/bugzilla/>
2007-09-23 11:48 ` rguenth at gcc dot gnu dot org
@ 2009-11-04 23:28 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-04 23:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jason at gcc dot gnu dot org 2009-11-04 23:27 -------
The problem is that we use a local_specializations hash table to look up locals
when instantiating a template, and i isn't in bar()'s local_specializations, so
we fail. We need to make static locals their own temploid.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/10291] error referencing a static local from a local struct in template code
[not found] <bug-10291-1186@http.gcc.gnu.org/bugzilla/>
@ 2007-09-23 11:48 ` rguenth at gcc dot gnu dot org
2009-11-04 23:28 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-09-23 11:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2007-09-23 11:48 -------
Testcase from comment #1 still returns 0 on trunk.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com,
| |mark at codesourcery dot com
Last reconfirmed|2006-09-03 21:39:31 |2007-09-23 11:48:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10291
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-03-02 11:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20030402010601.10291.sebor@roguewave.com>
2003-06-07 16:47 ` [Bug c++/10291] error referencing a static local from a local struct in template code pinskia@physics.uc.edu
2003-08-01 20:36 ` pinskia at physics dot uc dot edu
2004-02-03 7:49 ` pinskia at gcc dot gnu dot org
2004-04-30 2:13 ` pinskia at gcc dot gnu dot org
2004-04-30 2:38 ` sebor at roguewave dot com
[not found] <bug-10291-1186@http.gcc.gnu.org/bugzilla/>
2007-09-23 11:48 ` rguenth at gcc dot gnu dot org
2009-11-04 23:28 ` jason at gcc dot gnu dot org
[not found] <bug-10291-4@http.gcc.gnu.org/bugzilla/>
2011-10-09 13:55 ` bangerth at gmail dot com
2013-03-02 11:06 ` paolo.carlini at oracle dot com
2013-03-02 11:18 ` paolo at gcc dot gnu.org
2013-03-02 11:19 ` paolo.carlini at oracle dot com
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).