This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++-980221 constructor template instantiation bug
- To: egcs-bugs at cygnus dot com
- Subject: g++-980221 constructor template instantiation bug
- From: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
- Date: Mon, 23 Feb 1998 17:47:40 +0100 (CET)
- Reply-To: Dirk Herrmann <dirk at ida dot ing dot tu-bs dot de>
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