This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Internal error: implicit copy within argument list
- To: Vitaly Fedrushkov <willy at snowyowl dot csu dot ac dot ru>
- Subject: Re: Internal error: implicit copy within argument list
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Wed, 03 Feb 1999 18:06:13 +0000
- CC: egcs-bugs at cygnus dot com
- Organization: University of Bristol
- References: <Pine.LNX.4.04.9902032216240.24209-200000@snowyowl.csu.ac.ru>
- Reply-To: nathan at cs dot bris dot ac dot uk
Vitaly Fedrushkov wrote:
> $ g++ -v
> Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.90.29/specs
> gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)
>
> 3. Symptom:
>
> $ g++ egcs-constructor-bug.cc -o egcs-constructor-bug
> egcs-constructor-bug.cc: In method `BazChild::BazChild(const class Foreign &)':
> egcs-constructor-bug.cc:29: Internal compiler error.
> egcs-constructor-bug.cc:29: Please submit a full bug report to `egcs-bugs@cygnus.com'.
>
> Expected behavior is either: (a) copy constructor invocation, or (b)
> complaint about why this can't be done.
>
both the 1.1 release and the 19990131 snapshot generate a sensible diagnostic,
nathan@manao:272>uname -a
SunOS manao 5.6 Generic_105181-03 sun4u sparc SUNW,Ultra-5_10
nathan@manao:273>ss-g++ -v
Reading specs from /local/nathan/ss/lib/gcc-lib/sparc-sun-solaris2.6/egcs-2.93.04/specs
gcc version egcs-2.93.04 19990131 (gcc2 ss-980929 experimental)
nathan@manao:274>ss-g++ -c egcs-constructor-bug.cc
egcs-constructor-bug.cc: In method `BazChild::BazChild(const class Foreign &)':
egcs-constructor-bug.cc:30: no matching function for call to `Foo::Foo (Foo *&)'
egcs-constructor-bug.cc:6: candidates are: Foo::Foo(int, int)
egcs-constructor-bug.cc:7: Foo::Foo(const Foo &)
nathan@manao:278>g++ -v
Reading specs from /usr/local/egcs/sparc-SunOS_5/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
g++: No input files
nathan@manao:279>g++ -c egcs-constructor-bug.cc
egcs-constructor-bug.cc: In method `BazChild::BazChild(const class Foreign &)':
egcs-constructor-bug.cc:30: no matching function for call to `Foo::Foo (Foo *&)'
egcs-constructor-bug.cc:7: candidates are: Foo::Foo(const Foo &)
egcs-constructor-bug.cc:6: Foo::Foo(int, int)
consider upgrading to the 1.1 release
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
You can up the bandwidth, but you can't up the speed of light
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk