ISO C++ forbids casting between pointer-to-function and pointer-to-object

NEW
Unassigned

Status

()

--
major
10 years ago
2 years ago

People

(Reporter: wbrana, Unassigned)

Tracking

3.5 Branch
x86_64
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

10 years ago
User-Agent:       Opera/10.00 (X11; Linux x86_64 ; U; en) Presto/2.2.0
Build Identifier: mozilla-1.9.1 hg 23594

g++-3.4.6 -o xpcquickstubs.o -c -fvisibility=hidden -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1 -DMOZILLA_INTERNAL_API -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES  -DZLIB_INTERNAL -DOSTYPE=\"Linux2.6.28\" -DOSARCH=Linux -DJSFILE -DJS_THREADSAFE -DEXPORT_XPC_API -I./../loader  -I. -I. -I../../../../dist/include/xpcom -I../../../../dist/include/string -I../../../../dist/include/js -I../../../../dist/include/caps -I../../../../dist/include/necko -I../../../../dist/include/dom -I../../../../dist/include/content -I../../../../dist/include/editor -I../../../../dist/include/layout -I../../../../dist/include/rdf -I../../../../dist/include/svg -I../../../../dist/include/xuldoc -I../../../../dist/include/xultmpl -I../../../../dist/include/widget -I../../../../dist/include   -I../../../../dist/include/xpconnect -I/mnt/md4/cache/inst/191src/dist/include/nspr     -I/mnt/md4/cache/inst/191src/dist/sdk/include    -fPIC   -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -pipe -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -pipe   -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/xpcquickstubs.pp xpcquickstubs.cpp
xpcquickstubs.cpp: In function `JSBool LookupGetterOrSetter(JSContext*, JSBool, jsval*)':
xpcquickstubs.cpp:258: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object
xpcquickstubs.cpp:267: error: ISO C++ forbids casting between pointer-to-function and pointer-to-object
gmake[4]: *** [xpcquickstubs.o] Error 1
gmake[4]: Leaving directory `/mnt/md4/cache/inst/191src/js/src/xpconnect/src'


Reproducible: Always




build compiled with gcc 4.3.3 segfaults at startup
Version: unspecified → 3.1 Branch
(Reporter)

Comment 1

10 years ago
Segfault of gcc 4.3.3 compiled build wasn't compiler bug. It doesn't segfault, when different .mozconfig is used.

Updated

10 years ago
Depends on: 481536

Updated

10 years ago
No longer depends on: 481536

Comment 2

10 years ago
I have the same problem with the older GCC when compiling on OS/2, but for me this is fixed by the patch for bug 482384. So when that comes to the 1.9.1 branch, this bug should be fixed, too.
Status: UNCONFIRMED → NEW
Depends on: 482384
Ever confirmed: true

Comment 3

2 years ago
Should this be changed to RESOLVED FIXED?
You need to log in before you can comment on or make changes to this bug.