public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24050] New: Fails a template instantiation.
@ 2005-09-24 22:06 bakgab at vnet dot hu
  2005-09-24 22:09 ` [Bug c++/24050] " bakgab at vnet dot hu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bakgab at vnet dot hu @ 2005-09-24 22:06 UTC (permalink / raw)
  To: gcc-bugs

When trying to create a template using a specialized form inside in a static
class it fails to link.
Ex.:
template<class T> struct StaticClass
{
        static void ret() {}
};

template<class T>
void func(void function()) {}

template<class T> struct Test
{
        void doIt()
        {
                func<T>(StaticClass<Test<double> >::ret);
        }
};

-- 
           Summary: Fails a template instantiation.
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bakgab at vnet dot hu
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/24050] Fails a template instantiation.
  2005-09-24 22:06 [Bug c++/24050] New: Fails a template instantiation bakgab at vnet dot hu
@ 2005-09-24 22:09 ` bakgab at vnet dot hu
  2005-09-24 22:14 ` bakgab at vnet dot hu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bakgab at vnet dot hu @ 2005-09-24 22:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bakgab at vnet dot hu  2005-09-24 22:09 -------
Created an attachment (id=9801)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9801&action=view)
A test file that fails to link.

A test file that shows the problem.

-- 


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


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

* [Bug c++/24050] Fails a template instantiation.
  2005-09-24 22:06 [Bug c++/24050] New: Fails a template instantiation bakgab at vnet dot hu
  2005-09-24 22:09 ` [Bug c++/24050] " bakgab at vnet dot hu
@ 2005-09-24 22:14 ` bakgab at vnet dot hu
  2005-09-24 22:15 ` [Bug c++/24050] [3.4 Regression] " pinskia at gcc dot gnu dot org
  2005-09-24 22:24 ` bakgab at vnet dot hu
  3 siblings, 0 replies; 5+ messages in thread
From: bakgab at vnet dot hu @ 2005-09-24 22:14 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bakgab at vnet dot hu  2005-09-24 22:14 -------
Created an attachment (id=9802)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9802&action=view)
Output of g++-3.4 --version and g++-3.4 -o test test.cpp

Output of
g++-3.4 --version
and
g++-3.4 -o test test.cpp
Hope this is enough.

-- 


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


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

* [Bug c++/24050] [3.4 Regression] Fails a template instantiation.
  2005-09-24 22:06 [Bug c++/24050] New: Fails a template instantiation bakgab at vnet dot hu
  2005-09-24 22:09 ` [Bug c++/24050] " bakgab at vnet dot hu
  2005-09-24 22:14 ` bakgab at vnet dot hu
@ 2005-09-24 22:15 ` pinskia at gcc dot gnu dot org
  2005-09-24 22:24 ` bakgab at vnet dot hu
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-24 22:15 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-24 22:15 -------
Confirmed, only a 3.4 regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |wrong-code
      Known to fail|                            |3.4.0 3.4.4
      Known to work|                            |3.3.3 4.0.0 4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-24 22:15:56
               date|                            |
            Summary|Fails a template            |[3.4 Regression] Fails a
                   |instantiation.              |template instantiation.
   Target Milestone|---                         |3.4.5


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


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

* [Bug c++/24050] [3.4 Regression] Fails a template instantiation.
  2005-09-24 22:06 [Bug c++/24050] New: Fails a template instantiation bakgab at vnet dot hu
                   ` (2 preceding siblings ...)
  2005-09-24 22:15 ` [Bug c++/24050] [3.4 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-24 22:24 ` bakgab at vnet dot hu
  3 siblings, 0 replies; 5+ messages in thread
From: bakgab at vnet dot hu @ 2005-09-24 22:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From bakgab at vnet dot hu  2005-09-24 22:24 -------
Tested on Debian Sarge with g++-3.3 and g++-3.4.
The former has no problem, but the latter fails to link.
Another man reported to fail (the root problem) on Fedora Core 3. (gcc 3.4 too)

-- 


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


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

end of thread, other threads:[~2005-09-24 22:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-24 22:06 [Bug c++/24050] New: Fails a template instantiation bakgab at vnet dot hu
2005-09-24 22:09 ` [Bug c++/24050] " bakgab at vnet dot hu
2005-09-24 22:14 ` bakgab at vnet dot hu
2005-09-24 22:15 ` [Bug c++/24050] [3.4 Regression] " pinskia at gcc dot gnu dot org
2005-09-24 22:24 ` bakgab at vnet dot hu

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