public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6030: Template instance not found
@ 2002-03-21 20:56 philippeb
  0 siblings, 0 replies; 2+ messages in thread
From: philippeb @ 2002-03-21 20:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6030
>Category:       c++
>Synopsis:       Template instance not found
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 21 20:56:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     gcc
>Release:        3.0.3
>Organization:
>Environment:
Debian GNU/Linux i386
>Description:
The compiler instances a template function and doesn't find it afterwards:

recursive structure.cpp: In function `int main()':
recursive structure.cpp:19: no matching function for call to `foo()'
>How-To-Repeat:

>Fix:
Do not use template constants related to functions.
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="recursive structure.cpp"
Content-Disposition: inline; filename="recursive structure.cpp"

#include <utility>
#include <iostream>

using namespace std;

template <typename _T, _T _V>
	void foo()
	{
		cout << __PRETTY_FUNCTION__ << endl;
	}

int a = 0;

int b() { cout << __PRETTY_FUNCTION__ << endl; }

int main()
{
	foo<int, 9>();
	foo<int (), b>();
}


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

* Re: c++/6030: Template instance not found
@ 2002-04-26  9:00 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-04-26  9:00 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, philippeb

Synopsis: Template instance not found

State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Apr 26 08:59:58 2002
State-Changed-Why:
    confimed. I can find no prohibition on non-type template
    args of function type.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6030


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

end of thread, other threads:[~2002-04-26 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-21 20:56 c++/6030: Template instance not found philippeb
2002-04-26  9:00 nathan

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