Bug 26044 - lookup-2.mm:40: error: cannot convert 'objc_object*' to 'MyWidget*' in initialization
Summary: lookup-2.mm:40: error: cannot convert 'objc_object*' to 'MyWidget*' in initia...
Status: RESOLVED DUPLICATE of bug 23614
Alias: None
Product: gcc
Classification: Unclassified
Component: objc++ (show other bugs)
Version: 4.1.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-31 04:04 UTC by John David Anglin
Modified: 2006-01-31 04:05 UTC (History)
3 users (show)

See Also:
Host: hppa-unknown-linux-gnu
Target: hppa-unknown-linux-gnu
Build: hppa-unknown-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John David Anglin 2006-01-31 04:04:53 UTC
Executing on host: /home/dave/gnu/gcc-4.1/objdir/gcc/testsuite/../g++ -B/home/da
ve/gnu/gcc-4.1/objdir/gcc/testsuite/../ /home/dave/gnu/gcc-4.1/gcc/gcc/testsuite
/obj-c++.dg/lookup-2.mm  -nostdinc++ -I/home/dave/gnu/gcc-4.1/objdir/hppa-linux/
libstdc++-v3/include/hppa-linux -I/home/dave/gnu/gcc-4.1/objdir/hppa-linux/libst
dc++-v3/include -I/home/dave/gnu/gcc-4.1/gcc/libstdc++-v3/libsupc++ -I/home/dave
/gnu/gcc-4.1/gcc/libstdc++-v3/include/backward -I/home/dave/gnu/gcc-4.1/gcc/libs
tdc++-v3/testsuite -fmessage-length=0   -ansi -pedantic-errors -Wno-long-long -I
/home/dave/gnu/gcc-4.1/gcc/gcc/testsuite/../../libobjc    -L/home/dave/gnu/gcc-4
.1/objdir/hppa-linux/./libstdc++-v3/src/.libs  -L/home/dave/gnu/gcc-4.1/objdir/h
ppa-linux/./libstdc++-v3/src/.libs -L/home/dave/gnu/gcc-4.1/objdir/hppa-linux/./
libiberty -L/home/dave/gnu/gcc-4.1/objdir/hppa-linux/./libobjc/.libs -lobjc -lm
  -o ./lookup-2.exe    (timeout = 300)
/home/dave/gnu/gcc-4.1/gcc/gcc/testsuite/obj-c++.dg/lookup-2.mm: In function 'My
Widget* _c_Container__elementForView_(objc_object*, const objc_selector*, Foo*)'
:
/home/dave/gnu/gcc-4.1/gcc/gcc/testsuite/obj-c++.dg/lookup-2.mm:40: error: canno
t convert 'objc_object*' to 'MyWidget*' in initialization
compiler exited with status 1
output is:
/home/dave/gnu/gcc-4.1/gcc/gcc/testsuite/obj-c++.dg/lookup-2.mm: In function 'My
Widget* _c_Container__elementForView_(objc_object*, const objc_selector*, Foo*)'
:
/home/dave/gnu/gcc-4.1/gcc/gcc/testsuite/obj-c++.dg/lookup-2.mm:40: error: canno
t convert 'objc_object*' to 'MyWidget*' in initialization

FAIL: obj-c++.dg/lookup-2.mm (test for excess errors)
Comment 1 Andrew Pinski 2006-01-31 04:05:57 UTC

*** This bug has been marked as a duplicate of 23614 ***