public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/8050: g++ instantiates template too late
@ 2002-09-30 10:42 nathan
0 siblings, 0 replies; 7+ messages in thread
From: nathan @ 2002-09-30 10:42 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, marc, nobody
Synopsis: g++ instantiates template too late
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Mon Sep 30 10:42:50 2002
State-Changed-Why:
confirmed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8050
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: c++/8050: g++ instantiates template too late
@ 2003-04-15 21:33 steven
0 siblings, 0 replies; 7+ messages in thread
From: steven @ 2003-04-15 21:33 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, marc, nobody
Synopsis: g++ instantiates template too late
State-Changed-From-To: analyzed->closed
State-Changed-By: steven
State-Changed-When: Tue Apr 15 21:33:20 2003
State-Changed-Why:
http://gcc.gnu.org/ml/gcc-bugs/2003-04/msg00734.html
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8050
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: c++/8050: g++ instantiates template too late
@ 2003-04-15 20:46 florian.kirsch
0 siblings, 0 replies; 7+ messages in thread
From: florian.kirsch @ 2003-04-15 20:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 738 bytes --]
The following reply was made to PR c++/8050; it has been noted by GNATS.
From: florian.kirsch@gmx.net
To: gcc-bugs@gcc.gnu.org, marc@mit.edu, gcc-gnats@gcc.gnu.org, nobody@gcc.gnu.org, cc-prs@gcc.gnu.org
Cc:
Subject: Re: c++/8050: g++ instantiates template too late
Date: Tue, 15 Apr 2003 22:36:17 +0200 (MEST)
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8050
This bug appears to be fixed in
gcc version 3.2.3 20030412 (prerelease)
gcc version 3.3 20030412 (prerelease)
gcc version 3.4 20030115 (experimental)
I guess the report can be closed.
Florian
--
+++ GMX - Mail, Messaging & more http://www.gmx.net +++
Bitte lächeln! Fotogalerie online mit GMX ohne eigene Homepage!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: c++/8050: g++ instantiates template too late
@ 2002-09-25 19:56 Marc Horowitz
0 siblings, 0 replies; 7+ messages in thread
From: Marc Horowitz @ 2002-09-25 19:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8050; it has been noted by GNATS.
From: Marc Horowitz <marc@mit.edu>
To: Andrew Pinski <apinski@apple.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/8050: g++ instantiates template too late
Date: 25 Sep 2002 22:49:59 -0400
Andrew Pinski <apinski@apple.com> writes:
>> 2.96 is not support by the FSF, look for an update on redhat's site
>> and/or contact them.
And while I'm at it, the gcc on Mac OS X 10.2.1 is also affected.
Marc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: c++/8050: g++ instantiates template too late
@ 2002-09-25 19:56 Marc Horowitz
0 siblings, 0 replies; 7+ messages in thread
From: Marc Horowitz @ 2002-09-25 19:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8050; it has been noted by GNATS.
From: Marc Horowitz <marc@mit.edu>
To: Andrew Pinski <apinski@apple.com>
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/8050: g++ instantiates template too late
Date: 25 Sep 2002 22:48:54 -0400
Andrew Pinski <apinski@apple.com> writes:
>> 2.96 is not support by the FSF, look for an update on redhat's site
>> and/or contact them.
Yes, I know, hence my comment that this bug exists in other versions
of gcc, for instance:
% gcc -v
Reading specs from /usr/gcc/lib/gcc-lib/sparc-sun-solaris2.8/3.0.3/specs
Configured with: ./configure --prefix=/usr/gcc --disable-shared
Thread model: posix
gcc version 3.0.3
Same code, same gcc invocation, same erroneous output.
Marc
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: c++/8050: g++ instantiates template too late
@ 2002-09-25 16:46 Andrew Pinski
0 siblings, 0 replies; 7+ messages in thread
From: Andrew Pinski @ 2002-09-25 16:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/8050; it has been noted by GNATS.
From: Andrew Pinski <apinski@apple.com>
To: marc@mit.edu
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/8050: g++ instantiates template too late
Date: Wed, 25 Sep 2002 16:39:28 -0700
2.96 is not support by the FSF, look for an update on redhat's site
and/or contact them.
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 7+ messages in thread
* c++/8050: g++ instantiates template too late
@ 2002-09-25 16:16 marc
0 siblings, 0 replies; 7+ messages in thread
From: marc @ 2002-09-25 16:16 UTC (permalink / raw)
To: gcc-gnats
>Number: 8050
>Category: c++
>Synopsis: g++ instantiates template too late
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: rejects-legal
>Submitter-Id: net
>Arrival-Date: Wed Sep 25 16:16:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Marc Horowitz
>Release: unknown-1.0
>Organization:
>Environment:
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98)
>Description:
g++ gives an error on valid code. I believe the problem
has to do with when templates are instantiated and available
to the compiler, but it is difficult to be certain.
I first observed this with the compiler listed in the
Environment field above, but have confirmed it exists
in 3.0.3 and 3.1. It does not exist in 2.95.3 or 2.95.4.
I do not have access to 3.2, or any snapshots.
>How-To-Repeat:
Compile this code:
template <class T>
class X
{
public:
operator T*() { return(0); }
};
int* p;
extern X<int> xp;
void foo()
{
p == xp;
xp == p;
p == xp;
}
with this command line:
g++ -c foo.cc
You will get this error:
cfp.cc: In function `void foo ()':
cfp.cc:14: no match for `int *& == X<int> &'
If you reorder the lines in foo() so that line 15 is first,
the compiler does not complain anymore.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-04-15 21:33 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 10:42 c++/8050: g++ instantiates template too late nathan
-- strict thread matches above, loose matches on Subject: below --
2003-04-15 21:33 steven
2003-04-15 20:46 florian.kirsch
2002-09-25 19:56 Marc Horowitz
2002-09-25 19:56 Marc Horowitz
2002-09-25 16:46 Andrew Pinski
2002-09-25 16:16 marc
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).