public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17585] New: g++ generates errors on a legal code.
@ 2004-09-21 14:48 tal dot agmon at nsc dot com
  2004-09-21 14:56 ` [Bug c++/17585] " pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: tal dot agmon at nsc dot com @ 2004-09-21 14:48 UTC (permalink / raw)
  To: gcc-bugs

Compile the following code with g++ creates the following errors:

template <void (*p)(void)> struct S03 {};
class C03 {
public:
        static void f(void) {}
	void g(void) { S03<&f> s03; }
};

In member function `void C03::g()':
error: missing `>' to terminate the template argument list
error: template argument 1 is invalid
error: expected `;' before "f"

-- 
           Summary: g++ generates errors on a legal code.
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tal dot agmon at nsc dot com
                CC: gcc-bugs at gcc dot gnu dot org,paul dot woegerer at nsc
                    dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

end of thread, other threads:[~2004-09-30 18:13 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21 14:48 [Bug c++/17585] New: g++ generates errors on a legal code tal dot agmon at nsc dot com
2004-09-21 14:56 ` [Bug c++/17585] " pinskia at gcc dot gnu dot org
2004-09-21 15:03 ` tal dot agmon at nsc dot com
2004-09-21 18:56 ` bangerth at dealii dot org
2004-09-22  7:22 ` tal dot agmon at nsc dot com
2004-09-22  8:44 ` giovannibajo at libero dot it
2004-09-24 13:08 ` [Bug c++/17585] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2004-09-24 23:13 ` mmitchel at gcc dot gnu dot org
2004-09-27 14:47 ` cvs-commit at gcc dot gnu dot org
2004-09-27 18:47 ` cvs-commit at gcc dot gnu dot org
2004-09-27 18:50 ` cvs-commit at gcc dot gnu dot org
2004-09-27 21:14 ` mmitchel at gcc dot gnu dot org
2004-09-30 18:02 ` pinskia at gcc dot gnu dot org
2004-09-30 18:13 ` benh at bwsint dot com

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