This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34238] "static data member used, but not defined" error on member definition
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2007 20:18:10 -0000
- Subject: [Bug c++/34238] "static data member used, but not defined" error on member definition
- References: <bug-34238-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2007-11-26 20:18 -------
Small testcase:
// PR c++/34238
// { dg-do compile }
namespace
{
template <typename T = int> struct A
{
static const bool a = true;
};
};
struct A<> a;
Investigating...
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-11-26 20:18:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34238