Closed Bug 1162668 Opened 11 years ago Closed 5 years ago

MaybeOneOf.h: Class template is inaccessible

Categories

(Core :: MFBT, defect)

38 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: alexboy94, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:37.0) Gecko/20100101 Firefox/37.0.1 Waterfox/37.0 Build ID: 20150405003226 Steps to reproduce: Compile Firefox 38 (or any version that utilises MaybeOneOf) with Intel C++ Compiler 13 SP1 Update 5. Build fails with the MaybeOneOf class. I know ICL isn't a priority at all, but thought it might be worth mentioning. Seems that ICL doesn't like the scope that the struct MaybeOneOf has. Actual results: 1:12.35 RegExp.cpp 1:12.35 ../../dist/include/mozilla/MaybeOneOf.h(135): error #308: class template "mozilla::MaybeOneOf<T1, T2>::Type2State [with T1=js::StringBuffer::Latin1CharBuffer, T2=js::StringBuffer::TwoByteCharBuffer]" (declared at line 34) is inaccessible 1:12.35 struct MaybeOneOf<T1, T2>::Type2State<T2, Ignored> 1:12.35 ^ 1:12.35 detected during instantiation of class "mozilla::MaybeOneOf<T1, T2> [with T1=js::StringBuffer::Latin1CharBuffer, T2=js::StringBuffer::TwoByteCharBuffer]" at line 46 of "d:/gecko-dev-release/js/src/vm/StringBuffer.h" 1:12.35 1:12.35 ../../dist/include/mozilla/MaybeOneOf.h(127): error #308: class template "mozilla::MaybeOneOf<T1, T2>::Type2State [with T1=js::StringBuffer::Latin1CharBuffer, T2=js::StringBuffer::TwoByteCharBuffer]" (declared at line 34) is inaccessible 1:12.35 struct MaybeOneOf<T1, T2>::Type2State<T1, Ignored> 1:12.35 ^ 1:12.35 detected during instantiation of class "mozilla::MaybeOneOf<T1, T2> [with T1=js::StringBuffer::Latin1CharBuffer, T2=js::StringBuffer::TwoByteCharBuffer]" at line 46 of "d:/gecko-dev-release/js/src/vm/StringBuffer.h" 1:12.35 1:12.35 compilation aborted for d:/gecko-dev-release/js/src/builtin/RegExp.cpp (code 2) 1:12.36 1:12.45 In the directory /d/gecko-dev-release/objdir/js/src 1:12.45 The following command failed to execute properly: 1:12.45 d:/gecko-dev-release/objdir/_virtualenv/Scripts/python.exe -m mozbuild.action.cl icl -FoRegExp.obj -c -DFFI_BUILDING -D_CRT_RAND_S -DEXPORT_JS_API -DJS_HAS_CTYPES -DDLL_PREFIX="" -DDLL_SUFFIX=".dll" -DAB_CD= -DNO_NSPR_10_SUPPORT -Id:/gecko-dev-release/js/src -I. -Ictypes/libffi/include -Id:/gecko-dev-release/intl/icu/source/common -Id:/gecko-dev-release/intl/icu/source/i18n -I../../dist/include -Id:/gecko-dev-release/objdir/dist/include/nspr -MD -FI ../../js/src/js-confdefs.h -DMOZILLA_CLIENT -TP -nologo -wd4345 -wd4351 -wd4800 -D_CRT_SECURE_NO_WARNINGS -D_HAS_EXCEPTIONS=0 -W3 -Gy -FS -wd4244 -wd4267 -wd4251 -we4553 -GR- -D NDEBUG -DTRIMMED -Zi -UDEBUG -DNDEBUG -Qstd=c++11 -D_ATL_XP_TARGETING -O2 -w -Oy -Fdgenerated.pdb d:/gecko-dev-release/js/src/builtin/RegExp.cpp 1:12.46 d:/gecko-dev-release/config/rules.mk:930: recipe for target 'RegExp.obj ' failed 1:12.46 mozmake.EXE[5]: *** [RegExp.obj] Error 1 1:12.47 mozmake.EXE[5]: *** Waiting for unfinished jobs.... Expected results: Compile should've passed.

Closing this rather old bug. If you have a fix for this, feel free to reopen. I have some doubts though this will be the only issue with the Intel C++ Compiler.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.