public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10199: [3.3 regression] method parametrized by template does not work everywhere
@ 2003-03-24 10:26 steven
0 siblings, 0 replies; 4+ messages in thread
From: steven @ 2003-03-24 10:26 UTC (permalink / raw)
To: 185604, gcc-bugs, gcc-prs, nobody, thimo
Synopsis: [3.3 regression] method parametrized by template does not work everywhere
State-Changed-From-To: open->analyzed
State-Changed-By: steven
State-Changed-When: Mon Mar 24 10:15:36 2003
State-Changed-Why:
Confirmed
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10199
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10199: [3.3 regression] method parametrized by template does not work everywhere
@ 2003-03-24 18:56 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-24 18:56 UTC (permalink / raw)
To: 185604, gcc-bugs, gcc-prs, nathan, thimo
Synopsis: [3.3 regression] method parametrized by template does not work everywhere
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Mon Mar 24 18:39:37 2003
State-Changed-Why:
2003-03-24 Nathan Sidwell <nathan@codesourcery.com>
PR c++/10199
* call.c (build_method_call): Deal with LOOKUP_EXPR.
* semantics.c (finish_object_call_expr): Use build_method_call
when in a template decl.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10199
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/10199: [3.3 regression] method parametrized by template does not work everywhere
@ 2003-03-24 13:42 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-03-24 13:42 UTC (permalink / raw)
To: 185604, gcc-bugs, gcc-prs, nathan, nobody, thimo
Synopsis: [3.3 regression] method parametrized by template does not work everywhere
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Mon Mar 24 13:41:03 2003
Responsible-Changed-Why:
fixing
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10199
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/10199: [3.3 regression] method parametrized by template does not work everywhere
@ 2003-03-24 7:46 Matthias Klose
0 siblings, 0 replies; 4+ messages in thread
From: Matthias Klose @ 2003-03-24 7:46 UTC (permalink / raw)
To: gcc-gnats, debian-gcc
>Number: 10199
>Category: c++
>Synopsis: [3.3 regression] method parametrized by template does not work everywhere
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Mon Mar 24 06:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Thimo Neubauer <thimo@debian.org>
>Release: 3.3 CVS 20030323
>Organization:
The Debian Project
>Environment:
>Description:
[ Reported to the Debian BTS as report #185604.
Please CC 185604@bugs.debian.org on replies.
Log of report can be found at http://bugs.debian.org/185604 ]
- 3.2 CVS 20030316 rejects the code
- 3.3 CVS 20030323 ICEs in the error message (the regression)
- 3.4 CVS 20030316 compiles the code
$ g++-3.2 bugs-185604.cc
bugs-185604.cc: In function `void bar(T&) [with T = int]':
bugs-185604.cc:26: instantiated from here
bugs-185604.cc:18: no matching function for call to `X::bar()'
$ g++-3.3 bugs-185604.cc
bugs-185604.cc: In function `void bar(T&)':
bugs-185604.cc:18: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
The following program is valid C++, but does not compile:
-- snip --
class X {
public:
template<int d>
int bar () {return d;}
};
template<int x>
int fooo ()
{
return x;
}
template<class T>
void bar (T& g)
{
int kk = fooo<17>(); // OK
X x;
int k = x.bar<17>(); // Not OK
}
int main ()
{
X x;
int k=x.bar<17>(); // OK
int n;
bar(n);
}
-- snip --
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
System: Debian GNU/Linux (unstable)
Architecture: i686
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-03-24 18:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-24 10:26 c++/10199: [3.3 regression] method parametrized by template does not work everywhere steven
-- strict thread matches above, loose matches on Subject: below --
2003-03-24 18:56 nathan
2003-03-24 13:42 nathan
2003-03-24 7:46 Matthias Klose
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).