public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <20020411095602.6259.wolfgang.bangerth@iwr.uni-heidelberg.de>
@ 2003-11-20 10:36 ` mattyt at tpg dot com dot au
  2003-12-23  9:26 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: mattyt at tpg dot com dot au @ 2003-11-20 10:36 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From mattyt at tpg dot com dot au  2003-11-20 10:36 -------
I had this problem too, a template constructor in a template class.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mattyt at tpg dot com dot au


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <20020411095602.6259.wolfgang.bangerth@iwr.uni-heidelberg.de>
  2003-11-20 10:36 ` [Bug c++/6259] Explicit instantiation of template constructor not allowed mattyt at tpg dot com dot au
@ 2003-12-23  9:26 ` pinskia at gcc dot gnu dot org
  2003-12-28  5:59 ` pinskia at gcc dot gnu dot org
  2004-08-05  2:27 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-23  9:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-23 08:46 -------
The error message has changed on the mainline and looks better:
tests/pr6259.cc:6: error: `X' is not a template
tests/pr6259.cc:6: error: expected `)'
tests/pr6259.cc:6: error: abstract declarator `X' used as declaration
tests/pr6259.cc:6: error: explicit instantiation of non-template `X $_0'
tests/pr6259.cc:6: error: expected `;'

I know that the follow works as expected:
template <int dim> struct T {};
struct X {
  template <int dim> X (T<dim> &) {};
};

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

-- 


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <20020411095602.6259.wolfgang.bangerth@iwr.uni-heidelberg.de>
  2003-11-20 10:36 ` [Bug c++/6259] Explicit instantiation of template constructor not allowed mattyt at tpg dot com dot au
  2003-12-23  9:26 ` pinskia at gcc dot gnu dot org
@ 2003-12-28  5:59 ` pinskia at gcc dot gnu dot org
  2004-08-05  2:27 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-28  5:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2003-12-28 05:06 -------
Very much related to bug 9050 and 10832.

-- 


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <20020411095602.6259.wolfgang.bangerth@iwr.uni-heidelberg.de>
                   ` (2 preceding siblings ...)
  2003-12-28  5:59 ` pinskia at gcc dot gnu dot org
@ 2004-08-05  2:27 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-05  2:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-08-05 02:27 -------
We now get:

pr6259.cc:7: error: `X' is not a template
pr6259.cc:7: error: expected `)' before '&' token

-- 


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <bug-6259-184@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2009-11-24 23:09 ` jason at gcc dot gnu dot org
@ 2009-11-28 11:03 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-11-28 11:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from reichelt at gcc dot gnu dot org  2009-11-28 11:03 -------
Just for further reference: This was fixed by the patch for PR 9050.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.5.0


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <bug-6259-184@http.gcc.gnu.org/bugzilla/>
  2005-11-14 15:38 ` pinskia at gcc dot gnu dot org
  2009-11-24 21:52 ` bangerth at gmail dot com
@ 2009-11-24 23:09 ` jason at gcc dot gnu dot org
  2009-11-28 11:03 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-11-24 23:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jason at gcc dot gnu dot org  2009-11-24 23:09 -------
Yep, fixed for 4.5.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <bug-6259-184@http.gcc.gnu.org/bugzilla/>
  2005-11-14 15:38 ` pinskia at gcc dot gnu dot org
@ 2009-11-24 21:52 ` bangerth at gmail dot com
  2009-11-24 23:09 ` jason at gcc dot gnu dot org
  2009-11-28 11:03 ` reichelt at gcc dot gnu dot org
  3 siblings, 0 replies; 8+ messages in thread
From: bangerth at gmail dot com @ 2009-11-24 21:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from bangerth at gmail dot com  2009-11-24 21:52 -------
Jason, is this PR related to your recent work on injecting class names into
scopes? I don't know what makes gcc reject the constructor specialization,
but it seems to me that it might be because it parses the X<> part of
  template X::X<> (T<2> &)
as a class name with an invalid template argument list, rather than as
the constructor name.

W.


-- 

bangerth at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org


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


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

* [Bug c++/6259] Explicit instantiation of template constructor not allowed
       [not found] <bug-6259-184@http.gcc.gnu.org/bugzilla/>
@ 2005-11-14 15:38 ` pinskia at gcc dot gnu dot org
  2009-11-24 21:52 ` bangerth at gmail dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-14 15:38 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2005-11-14 15:38 -------
*** Bug 24848 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |seefeld at sympatico dot ca


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


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

end of thread, other threads:[~2009-11-28 11:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20020411095602.6259.wolfgang.bangerth@iwr.uni-heidelberg.de>
2003-11-20 10:36 ` [Bug c++/6259] Explicit instantiation of template constructor not allowed mattyt at tpg dot com dot au
2003-12-23  9:26 ` pinskia at gcc dot gnu dot org
2003-12-28  5:59 ` pinskia at gcc dot gnu dot org
2004-08-05  2:27 ` pinskia at gcc dot gnu dot org
     [not found] <bug-6259-184@http.gcc.gnu.org/bugzilla/>
2005-11-14 15:38 ` pinskia at gcc dot gnu dot org
2009-11-24 21:52 ` bangerth at gmail dot com
2009-11-24 23:09 ` jason at gcc dot gnu dot org
2009-11-28 11:03 ` reichelt 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).