This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/5435: Resolution of templates with thing[] types


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]