Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!apple!gem.mps.ohio-state.edu!wuarchive!texbell!attctc!pollux!ti-csl!m2!neath From: neath@solar-1.stars.flab.Fujitsu.JUNET Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug Message-ID: Date: 30 Oct 89 14:28:06 GMT Sender: news@ti-csl.csc.ti.com Distribution: comp.lang.c++ Organization: Texas Instruments Data Systems Group, Austin TX Lines: 27 The following code does not compile under <>. However, if you comment out the line indicated, no problem! Is this a bug in the translator or a feature of the language? class foo { public: foo () {}; // Comment out this line and it works! foo (const char *const &) {}; }; void bar () { char* str = "abc"; foo a(); foo b("abc"); } CC2 -c const_bug.C "const_bug.C", line 10: error: bad argument list for foo::foo() (no match against any foo::foo()) 1 error Regards Martin Neath ------------------------------------------------------------------------ DISCLAIMER: As always, the opinions expressed above are strictly my own and do not reflect those of my employer, Texas Instruments. ------------------------------------------------------------------------