This is the mail archive of the gcc-bugs@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]

g++-980221 constructor template instantiation bug


Hello everybody!

Special hello and thanks for previous help to Mark!

 
 
The following code won't get compiled by egcs:

--------------------------------------------------------------------- 
struct X 
{
    template<class A, class B>
    X(const A&, const B&);
};
 
int f();
 
main()
{
    X("", f());         // this line is parsed OK
    X(f(), "");         // line 12
}
--------------------------------------------------------------------- 

> g++ test.cc
test.cc: In function `int main()':
test.cc:12: parse error before `,'


Best regards, 
Dirk Herrmann




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