public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35570]  New: static functionclass member
@ 2008-03-13 15:30 pluto at agmk dot net
  2008-03-13 15:33 ` [Bug c++/35570] " pluto at agmk dot net
  0 siblings, 1 reply; 2+ messages in thread
From: pluto at agmk dot net @ 2008-03-13 15:30 UTC (permalink / raw)
  To: gcc-bugs

template < void ( *F )() >
struct X { };
template < typename T >
struct Y
{
        static void f() { }
        typedef X< f > F;
};
Y< void > test;

$ g++ 0.cpp -c
0.cpp: In instantiation of &#8216;Y<void>&#8217;:
0.cpp:9:   instantiated from here
0.cpp:7: error: &#8216;static void Y<T>::f() [with T = void]&#8217; cannot
appear
                in a constant-expression


-- 
           Summary: static functionclass member
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35570


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

* [Bug c++/35570] static functionclass member
  2008-03-13 15:30 [Bug c++/35570] New: static functionclass member pluto at agmk dot net
@ 2008-03-13 15:33 ` pluto at agmk dot net
  0 siblings, 0 replies; 2+ messages in thread
From: pluto at agmk dot net @ 2008-03-13 15:33 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pluto at agmk dot net  2008-03-13 15:33 -------
sorry, accidental submit.

*** This bug has been marked as a duplicate of 35571 ***


-- 

pluto at agmk dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35570


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

end of thread, other threads:[~2008-03-13 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-13 15:30 [Bug c++/35570] New: static functionclass member pluto at agmk dot net
2008-03-13 15:33 ` [Bug c++/35570] " pluto at agmk dot net

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