public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11930] New: Cannot define static template struct member
@ 2003-08-15 16:07 schnetter at uni-tuebingen dot de
  2003-08-15 16:36 ` [Bug c++/11930] " bangerth at dealii dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: schnetter at uni-tuebingen dot de @ 2003-08-15 16:07 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=11930

           Summary: Cannot define static template struct member
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schnetter at uni-tuebingen dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-linux-gnu

I cannot define static members of template structs.  The code 
 
template<int D> 
struct x { 
  static int a; 
}; 
int x<0>::a; 
 
leads to the error message 
 
tmp.cc:5: error: too few template-parameter-lists 
 
The same code compiles fine with g++ 3.3.1.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-04-25  4:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-15 16:07 [Bug c++/11930] New: Cannot define static template struct member schnetter at uni-tuebingen dot de
2003-08-15 16:36 ` [Bug c++/11930] " bangerth at dealii dot org
2003-08-15 18:06 ` schnetter at uni-tuebingen dot de
2003-08-15 18:11 ` pinskia at gcc dot gnu dot org
2003-08-15 19:42 ` bangerth at dealii dot org
2005-04-25  4:13 ` pinskia at gcc dot gnu dot org
2005-04-25  4:13 ` pinskia at gcc dot gnu dot org

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).