public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26230]  New: template instantiation failure (-frepo).
@ 2006-02-12 11:57 pluto at agmk dot net
  2006-02-12 16:47 ` [Bug c++/26230] " pinskia at gcc dot gnu dot org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-12 11:57 UTC (permalink / raw)
  To: gcc-bugs

$ cat impl.cc
struct A {};
template<typename T> struct t { t(); };
template<typename T> t<T>::t() {}
int main()
{
    t<A> *foo = new t<A>;
    return 0;
}

$ g++ -c -frepo impl.cc

$ c++filt <impl.rpo
M impl.cc
D /home/users/pluto/rpm/BUILD
A '-c' '-frepo' '-mtune=k8' '-frandom-seed=0x5e164bdf'
O t<A>::t()
O t<A>::t()

$ g++ -frepo impl.o -o impl
impl.o: In function `main':impl.cc:(.text+0x1c):
undefined reference to `t<A>::t()'
collect2: ld returned 1 exit status

it looks like a regression (it was fixed in 2.95.x, see PR454).


-- 
           Summary: template instantiation failure (-frepo).
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pluto at agmk dot net
 GCC build triplet: x86-64
  GCC host triplet: x86-64
GCC target triplet: x86-64


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
@ 2006-02-12 16:47 ` pinskia at gcc dot gnu dot org
  2006-02-12 16:49 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 16:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-02-12 16:47 -------
This works with "4.1.0 20060208".


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
  2006-02-12 16:47 ` [Bug c++/26230] " pinskia at gcc dot gnu dot org
@ 2006-02-12 16:49 ` pinskia at gcc dot gnu dot org
  2006-02-12 16:51 ` pluto at agmk dot net
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 16:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-02-12 16:49 -------
c++filt < t.rpo gives:
M t.cc
D /home/pinskia
A '-c' '-frepo' '-mtune=k8' '-frandom-seed=0x5f283832'
C t<A>::t()
O t<A>::t()

What exact version are you trying with and does it have any modifications?


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
  2006-02-12 16:47 ` [Bug c++/26230] " pinskia at gcc dot gnu dot org
  2006-02-12 16:49 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 16:51 ` pluto at agmk dot net
  2006-02-12 16:55 ` pluto at agmk dot net
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-12 16:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pluto at agmk dot net  2006-02-12 16:51 -------
(In reply to comment #2)
> c++filt < t.rpo gives:
> M t.cc
> D /home/pinskia
> A '-c' '-frepo' '-mtune=k8' '-frandom-seed=0x5f283832'
> C t<A>::t()
> O t<A>::t()
> 
> What exact version are you trying with and does it have any modifications?
> 

4.1-20060211 rev. 110872 with additional patches:

pr19664_gnu_internal.patch
pr19664_libstdc++.patch
pr20218.patch
pr7776.patch
pr20297.patch
pr19606.patch
pr24879.patch
pr19505.patch
pr24419.patch
pr24669.patch
pr17390.patch
pr24996.patch
pr13676.patch
ldbl-default-libstdc++.patch
ldbl-default.patch


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (2 preceding siblings ...)
  2006-02-12 16:51 ` pluto at agmk dot net
@ 2006-02-12 16:55 ` pluto at agmk dot net
  2006-02-12 17:02 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-12 16:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pluto at agmk dot net  2006-02-12 16:55 -------
from .pl usenet i also known it fails
with 4.0.3/20060128 (prerelease) (Debian 4.0.2-8)


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (3 preceding siblings ...)
  2006-02-12 16:55 ` pluto at agmk dot net
@ 2006-02-12 17:02 ` pinskia at gcc dot gnu dot org
  2006-02-12 17:05 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 17:02 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-02-12 17:02 -------
It works with "4.0.3 20051105" and "4.2.0 20060208".
And I don't have any modifications to my 4.1.0 or 4.0.3, they are built clean
too.

Can you try a clean build and also do building of imp.cc in a clean directory?


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (4 preceding siblings ...)
  2006-02-12 17:02 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 17:05 ` pinskia at gcc dot gnu dot org
  2006-02-12 17:06 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 17:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from pinskia at gcc dot gnu dot org  2006-02-12 17:04 -------
And it works with "4.2.0 20060211" on powerpc-darwin.  (the other ones were on
x86_64-linux-gnu).


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (5 preceding siblings ...)
  2006-02-12 17:05 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 17:06 ` pinskia at gcc dot gnu dot org
  2006-02-12 17:15 ` pluto at agmk dot net
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 17:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from pinskia at gcc dot gnu dot org  2006-02-12 17:06 -------
And works with "4.2.0 20060127" on powerpc-darwin.


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (6 preceding siblings ...)
  2006-02-12 17:06 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 17:15 ` pluto at agmk dot net
  2006-02-12 17:21 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-12 17:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from pluto at agmk dot net  2006-02-12 17:15 -------
pure 4.1-20060211 (rev. 110872) works.
investigating patchset now...


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (7 preceding siblings ...)
  2006-02-12 17:15 ` pluto at agmk dot net
@ 2006-02-12 17:21 ` pinskia at gcc dot gnu dot org
  2006-02-12 20:04 ` pluto at agmk dot net
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-12 17:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from pinskia at gcc dot gnu dot org  2006-02-12 17:21 -------
I should note that PR 24996 was fixed a different way then the orginal patch
was for so it might be that one.

But closing this bug as works for me as it does.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (8 preceding siblings ...)
  2006-02-12 17:21 ` pinskia at gcc dot gnu dot org
@ 2006-02-12 20:04 ` pluto at agmk dot net
  2006-02-16 10:41 ` pluto at agmk dot net
  2006-02-16 12:22 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-12 20:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from pluto at agmk dot net  2006-02-12 20:04 -------
(In reply to comment #8)
> pure 4.1-20060211 (rev. 110872) works.
> investigating patchset now...
> 

blah, g++ doesn't work. xgcc does.

[obj-x86_64-pld-linux/gcc]$ ./g++ -B. -c -frepo impl.cc
[obj-x86_64-pld-linux/gcc]$ ./g++ -B. -frepo impl.o -o impl
impl.o: In function `main':impl.cc:(.text+0x1c): undefined reference to
`t<A>::t()'
collect2: ld returned 1 exit status

[obj-x86_64-pld-linux/gcc]$ ./xgcc -B. -c -frepo impl.cc
[obj-x86_64-pld-linux/gcc]$ ./xgcc -B. -frepo impl.o -o impl
collect: recompiling impl.cc
collect: relinking
impl.o: In function `main':impl.cc:(.text+0x19):
undefined reference to `operator new(unsigned long)'
impl.o:(.eh_frame+0x12):
undefined reference to `__gxx_personality_v0'

g++ doesn't recompile impl.cc.


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (9 preceding siblings ...)
  2006-02-12 20:04 ` pluto at agmk dot net
@ 2006-02-16 10:41 ` pluto at agmk dot net
  2006-02-16 12:22 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pluto at agmk dot net @ 2006-02-16 10:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #11 from pluto at agmk dot net  2006-02-16 10:41 -------
on 3.4.5 g++ also fails (but xgcc works).
Andrew, What you've checked in #c5, #c6 nad #c7 ?


-- 


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


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

* [Bug c++/26230] template instantiation failure (-frepo).
  2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
                   ` (10 preceding siblings ...)
  2006-02-16 10:41 ` pluto at agmk dot net
@ 2006-02-16 12:22 ` pinskia at gcc dot gnu dot org
  11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-16 12:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #12 from pinskia at gcc dot gnu dot org  2006-02-16 12:22 -------
(In reply to comment #11)
> on 3.4.5 g++ also fails (but xgcc works).
> Andrew, What you've checked in #c5, #c6 nad #c7 ?
g++ the installed version.


-- 


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


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

end of thread, other threads:[~2006-02-16 12:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-12 11:57 [Bug c++/26230] New: template instantiation failure (-frepo) pluto at agmk dot net
2006-02-12 16:47 ` [Bug c++/26230] " pinskia at gcc dot gnu dot org
2006-02-12 16:49 ` pinskia at gcc dot gnu dot org
2006-02-12 16:51 ` pluto at agmk dot net
2006-02-12 16:55 ` pluto at agmk dot net
2006-02-12 17:02 ` pinskia at gcc dot gnu dot org
2006-02-12 17:05 ` pinskia at gcc dot gnu dot org
2006-02-12 17:06 ` pinskia at gcc dot gnu dot org
2006-02-12 17:15 ` pluto at agmk dot net
2006-02-12 17:21 ` pinskia at gcc dot gnu dot org
2006-02-12 20:04 ` pluto at agmk dot net
2006-02-16 10:41 ` pluto at agmk dot net
2006-02-16 12:22 ` pinskia 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).