This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52688] static local variable can accessed from local class of function template
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 26 Mar 2012 15:31:20 +0000
- Subject: [Bug c++/52688] static local variable can accessed from local class of function template
- Auto-submitted: auto-generated
- References: <bug-52688-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52688
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-03-26
Ever Confirmed|0 |1
Known to fail| |4.1.2, 4.4.3, 4.5.2, 4.6.3,
| |4.7.0
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-03-26 15:31:20 UTC ---
(In reply to comment #0)
> While gcc-4.5.1 compiles fine this code
Are you sure? I get the same error with 4.1.2, 4.4.3, 4.5.2, 4.6.3 and 4.7.0
4.5.2 compiles and links OK with optimisation enabled, but so do the other
versions