--- Comment #9 from jakub at gcc dot gnu dot org 2007-12-11 08:22 ---
Subject: Bug 34238
Author: jakub
Date: Tue Dec 11 08:22:10 2007
New Revision: 130771
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=130771
Log:
PR c++/34238
* decl2.c
--- Comment #10 from jakub at gcc dot gnu dot org 2007-12-11 08:39 ---
Fixed, at the expense of reverting PR34094 fix.
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #8 from rguenth at gcc dot gnu dot org 2007-12-04 22:26 ---
*** Bug 34340 has been marked as a duplicate of this bug. ***
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #7 from pinskia at gcc dot gnu dot org 2007-12-03 03:15 ---
*** Bug 34229 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #6 from jakub at gcc dot gnu dot org 2007-11-29 11:07 ---
Fix has been already posted 3 days ago:
http://gcc.gnu.org/ml/gcc-patches/2007-11/msg01419.html
--
jakub at gcc dot gnu dot org changed:
What|Removed |Added
--- Comment #5 from rguenth at gcc dot gnu dot org 2007-11-29 11:00 ---
Yes, this looks invalid - but can we diagnose this at compile-time?
Also, from decl2.c:
/* Error on
namespace { struct A { static int i; }; }
int foo () { return
--
pinskia at gcc dot gnu dot org changed:
What|Removed |Added
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34238
--- Comment #3 from bero at arklinux dot org 2007-11-26 20:26 ---
Works in 4.2.x -- marking as regression
--
bero at arklinux dot org changed:
What|Removed |Added
--- Comment #4 from pinskia at gcc dot gnu dot org 2007-11-26 20:32 ---
(In reply to comment #2)
Small testcase:
// PR c++/34238
// { dg-do compile }
namespace
{
template typename T = int struct A
{
static const bool a = true;
};
};
struct A a;
Hmm, I think this is