This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/5435: Resolution of templates with thing[] types
- From: rodrigc at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, guillaume dot lemaitre33 at wanadoo dot fr, nobody at gcc dot gnu dot org
- Date: 20 Jan 2002 22:07:47 -0000
- Subject: Re: c++/5435: Resolution of templates with thing[] types
- Reply-to: rodrigc at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, guillaume dot lemaitre33 at wanadoo dot fr, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: Resolution of templates with thing[] types
State-Changed-From-To: open->analyzed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 20 14:07:46 2002
State-Changed-Why:
Your code example is ill-formed.
You defined a template function, but did not refer to
it properly. Your code example should be something like:
template< typename ContainerAddress_ >
void f( ContainerAddress_ p_in ) {
}
int main( const int argc, char * argv[] ) {
int mof[argc];
f<int *>( mof );
return 0;
}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5435