public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6259: Explicit instantiation of template constructor not allowed
@ 2002-07-11  8:06 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-07-11  8:06 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, wolfgang.bangerth

Synopsis: Explicit instantiation of template constructor not allowed

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 11 08:06:49 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6259


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

* c++/6259: Explicit instantiation of template constructor not allowed
@ 2002-04-11  9:56 wolfgang.bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: wolfgang.bangerth @ 2002-04-11  9:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6259
>Category:       c++
>Synopsis:       Explicit instantiation of template constructor not allowed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Apr 11 09:56:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Wolfgang Bangerth
>Release:        all gcc versions
>Organization:
>Environment:
Linux, Sparc
>Description:
The following snippet does not compile, although I believe
that it should. If instead of the constructor a regular
function is used, it works.

-----------------------------------------
template <int dim> struct T {};
struct X {
  template <int dim> X (T<dim> &) {};
};

template X::X<> (T<2> &);


-------------------------------------
x.cc:6: `X' is not a template
x.cc:6: ISO C++ forbids declaration of `type name' with no type
x.cc:6: abstract declarator `int (X::)(T<2>&)' used as declaration
x.cc:6: no member function `._0' declared in `X'
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-07-11 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11  8:06 c++/6259: Explicit instantiation of template constructor not allowed lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2002-04-11  9:56 wolfgang.bangerth

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