public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-03-13 19:29 jason
0 siblings, 0 replies; 6+ messages in thread
From: jason @ 2003-03-13 19:29 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, jgibbs, mdorey
Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
State-Changed-From-To: analyzed->open
State-Changed-By: jason
State-Changed-When: Thu Mar 13 19:29:34 2003
State-Changed-Why:
an->an
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-03-13 21:41 jason
0 siblings, 0 replies; 6+ messages in thread
From: jason @ 2003-03-13 21:41 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, jgibbs, mdorey
Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
State-Changed-From-To: analyzed->closed
State-Changed-By: jason
State-Changed-When: Thu Mar 13 21:41:59 2003
State-Changed-Why:
fixed.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-03-13 20:26 jason
0 siblings, 0 replies; 6+ messages in thread
From: jason @ 2003-03-13 20:26 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, jgibbs, mdorey
Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
State-Changed-From-To: open->analyzed
State-Changed-By: jason
State-Changed-When: Thu Mar 13 20:26:21 2003
State-Changed-Why:
Core issues 63 and 212 are relevant here. [temp.inst] says
A class template specialization is implicitly instantiated if the class type is used in a context that requires a completely-defined object type or if the completeness of the class type might affect the semantics of the program. [Note: in particular, if the semantics of an expression depend on the member or base class lists of a class template specialization, the class template specialization is implicitly generated. For instance, deleting a pointer to class type depends on whether or not the class declares a destructor, and conversion between pointer to class types depends on the inheritance relationship between the two classes involved. ]
...
If the overload resolution process can determine the correct function to call without instantiating a class
template definition, it is unspecified whether that instantiation actually takes place.
In this case, we need to do overload resolution for E<0,
because E is an enum. We consider op<(C,C) as a candidate.
To test whether or not it is a valid candidate, we need to
determine whether or not there is a conversion from E (and
int) to C.
Hmm...
No, I'm making this harder than it actually is. The bug is
that we're instantiating B<int> when we don't need to,
because we can't use a user-defined conversion from E (or int)
to B<int>, because we're already considering a UDC to C.
This should be simple to fix.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-03-13 19:14 jason
0 siblings, 0 replies; 6+ messages in thread
From: jason @ 2003-03-13 19:14 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jason, jgibbs, mdorey, nathan
Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
Responsible-Changed-From-To: nathan->jason
Responsible-Changed-By: jason
Responsible-Changed-When: Thu Mar 13 19:14:35 2003
Responsible-Changed-Why:
theft
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-01-23 18:20 nathan
0 siblings, 0 replies; 6+ messages in thread
From: nathan @ 2003-01-23 18:20 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jgibbs, mdorey, nathan, nobody
Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Thu Jan 23 18:20:31 2003
Responsible-Changed-Why:
fixing
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
@ 2003-01-23 17:13 bangerth
0 siblings, 0 replies; 6+ messages in thread
From: bangerth @ 2003-01-23 17:13 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jgibbs, mdorey, nobody
Old Synopsis: [regression over 2.95] incomplete type incorrectly reported
New Synopsis: [3.2/3.3/3.4 regression] incomplete type incorrectly reported
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Jan 23 17:13:55 2003
State-Changed-Why:
True. Very weird problem:
--------------------------
enum { E };
template <typename T> struct A {
static const int a = (E < 0);
};
template <typename T> class B {
A<int> b;
};
struct C {
C(B<int>);
};
int operator<(C, C);
A<int> c;
----------------------------
Changing any bit of the code makes the bug go away (e.g.
changing op< to function foo). Used to work with 2.95, but
does no longer with 3.2.2 and 3.3 (just accidentially
ruined my 3.4 installation, but likely to show same problem).
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9420
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-03-13 21:41 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-13 19:29 c++/9420: [3.2/3.3/3.4 regression] incomplete type incorrectly reported jason
-- strict thread matches above, loose matches on Subject: below --
2003-03-13 21:41 jason
2003-03-13 20:26 jason
2003-03-13 19:14 jason
2003-01-23 18:20 nathan
2003-01-23 17:13 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).