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]

Re: Internal error: implicit copy within argument list


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


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