http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54437

             Bug #: 54437
           Summary: [4.8 Regression]  Revision 190664 causes Firefox build
                    failure
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: mar...@trippelsdorf.de


Created attachment 28111
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28111
testcase

Starting with revision 190664 I get the following error when building Firefox:

 $ cc1plus -w -quiet jstypedarray.ii
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In instantiation of ‘static
JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*) [with
JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::bufferValue; JSBool = int; JSContext = JSContext]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::bufferValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3241:80:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: no matching
function for call to ‘CallNonGenericMethod(JSContext*&, JS::CallArgs&)’
     return CallNonGenericMethod<is, getterImpl<ValueGetter> >(cx, args);
                                                                       ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: note: candidate is:
In file included from /var/tmp/mozilla-central/js/src/jstypedarray.cpp:13:0:
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note: template<bool (*
Test)(const JS::Value&), bool (* Impl)(JSContext*, JS::CallArgs)> bool
JS::CallNonGenericMethod(JSContext*, JS::CallArgs)
 CallNonGenericMethod(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note:   template argument
deduction/substitution failed:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In substitution of
‘template<bool (* Test)(const JS::Value&), bool (* Impl)(JSContext*,
JS::CallArgs)> bool JS::CallNonGenericMethod(JSContext*, JS::CallArgs) [with
bool (* Test)(const JS::Value&) = js::DataViewObject::is; bool (*
Impl)(JSContext*, JS::CallArgs) =
js::DataViewObject::getterImpl<js::DataViewObject::bufferValue>]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71:   required from
‘static JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*)
[with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::bufferValue; JSBool = int; JSContext = JSContext]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::bufferValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3241:80:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3191:1: error: ‘static bool
js::DataViewObject::getterImpl(JSContext*, JS::CallArgs) [with JS::Value (*
ValueGetter)(js::DataViewObject&) = js::DataViewObject::bufferValue; JSContext
= JSContext]’ is private
 DataViewObject::getterImpl(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: within this
context
     return CallNonGenericMethod<is, getterImpl<ValueGetter> >(cx, args);
                                                                       ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In instantiation of ‘static
JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*) [with
JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteLengthValue; JSBool = int; JSContext = JSContext]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteLengthValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3244:88:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: no matching
function for call to ‘CallNonGenericMethod(JSContext*&, JS::CallArgs&)’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: note: candidate is:
In file included from /var/tmp/mozilla-central/js/src/jstypedarray.cpp:13:0:
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note: template<bool (*
Test)(const JS::Value&), bool (* Impl)(JSContext*, JS::CallArgs)> bool
JS::CallNonGenericMethod(JSContext*, JS::CallArgs)
 CallNonGenericMethod(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note:   template argument
deduction/substitution failed:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In substitution of
‘template<bool (* Test)(const JS::Value&), bool (* Impl)(JSContext*,
JS::CallArgs)> bool JS::CallNonGenericMethod(JSContext*, JS::CallArgs) [with
bool (* Test)(const JS::Value&) = js::DataViewObject::is; bool (*
Impl)(JSContext*, JS::CallArgs) =
js::DataViewObject::getterImpl<js::DataViewObject::byteLengthValue>]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71:   required from
‘static JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*)
[with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteLengthValue; JSBool = int; JSContext = JSContext]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteLengthValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3244:88:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3191:1: error: ‘static bool
js::DataViewObject::getterImpl(JSContext*, JS::CallArgs) [with JS::Value (*
ValueGetter)(js::DataViewObject&) = js::DataViewObject::byteLengthValue;
JSContext = JSContext]’ is private
 DataViewObject::getterImpl(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: within this
context
     return CallNonGenericMethod<is, getterImpl<ValueGetter> >(cx, args);
                                                                       ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In instantiation of ‘static
JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*) [with
JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteOffsetValue; JSBool = int; JSContext = JSContext]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteOffsetValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3247:88:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: no matching
function for call to ‘CallNonGenericMethod(JSContext*&, JS::CallArgs&)’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: note: candidate is:
In file included from /var/tmp/mozilla-central/js/src/jstypedarray.cpp:13:0:
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note: template<bool (*
Test)(const JS::Value&), bool (* Impl)(JSContext*, JS::CallArgs)> bool
JS::CallNonGenericMethod(JSContext*, JS::CallArgs)
 CallNonGenericMethod(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jsapi.h:1556:1: note:   template argument
deduction/substitution failed:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp: In substitution of
‘template<bool (* Test)(const JS::Value&), bool (* Impl)(JSContext*,
JS::CallArgs)> bool JS::CallNonGenericMethod(JSContext*, JS::CallArgs) [with
bool (* Test)(const JS::Value&) = js::DataViewObject::is; bool (*
Impl)(JSContext*, JS::CallArgs) =
js::DataViewObject::getterImpl<js::DataViewObject::byteOffsetValue>]’:
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71:   required from
‘static JSBool js::DataViewObject::getter(JSContext*, unsigned int, JS::Value*)
[with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteOffsetValue; JSBool = int; JSContext = JSContext]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3215:108:   required from
‘static bool js::DataViewObject::defineGetter(JSContext*, js::PropertyName*,
JS::HandleObject) [with JS::Value (* ValueGetter)(js::DataViewObject&) =
js::DataViewObject::byteOffsetValue; JSContext = JSContext; JS::HandleObject =
JS::Handle<JSObject*>]’
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3247:88:   required from here
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3191:1: error: ‘static bool
js::DataViewObject::getterImpl(JSContext*, JS::CallArgs) [with JS::Value (*
ValueGetter)(js::DataViewObject&) = js::DataViewObject::byteOffsetValue;
JSContext = JSContext]’ is private
 DataViewObject::getterImpl(JSContext *cx, CallArgs args)
 ^
/var/tmp/mozilla-central/js/src/jstypedarray.cpp:3204:71: error: within this
context
     return CallNonGenericMethod<is, getterImpl<ValueGetter> >(cx, args);
                                                                       ^
Testcase is attached. I'm currently trying to reduce it further.

Reply via email to