Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1662367

Summary: internal compiler error: unexpected expression 'I' of kind template_parm_index
Product: Red Hat Developer Toolset Reporter: Robert Scheck <redhat-bugzilla>
Component: gccAssignee: Marek Polacek <mpolacek>
Status: CLOSED DUPLICATE QA Contact: Martin Cermak <mcermak>
Severity: medium Docs Contact:
Priority: unspecified    
Version: DTS 7.1 RHEL 7CC: jakub, kanderso, law, mcermak, mnewsome, ohudlick, than
Target Milestone: alpha   
Target Release: 8.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-01-03 16:39:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
build.log of 'mock -r epel-7-x86_64 rebuild iridium-browser-2018.11.71-1.el7.src.rpm' none

Description Robert Scheck 2018-12-28 01:54:56 UTC
Created attachment 1517166 [details]
build.log of 'mock -r epel-7-x86_64 rebuild iridium-browser-2018.11.71-1.el7.src.rpm'

Description of problem:
FAILED: obj/third_party/webrtc/modules/rtp_rtcp/rtp_rtcp_format/rtp_rtcp_defines.o 
g++ -MMD -MF obj/third_party/webrtc/modules/rtp_rtcp/rtp_rtcp_format/rtp_rtcp_defines.o.d -DV8_DEPRECATION_WARNINGS -DUSE_UDEV -DUSE_AURA=1 -DUSE_GLIB=1 -DUSE_NSS_CERTS=1 -DUSE_X11=1 -DFULL_SAFE_BROWSING -DSAFE_BROWSING_CSD -DSAFE_BROWSING_DB_LOCAL -DCHROMIUM_BUILD -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D_FORTIFY_SOURCE=2 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DHAVE_SCTP -DENABLE_EXTERNAL_AUTH -DUSE_BUILTIN_SW_CODECS -DHAVE_WEBRTC_VIDEO -DHAVE_WEBRTC_VOICE -DLOGGING_INSIDE_WEBRTC -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_32 -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_26 -I../.. -Igen -I../../third_party/webrtc_overrides -I../../third_party/webrtc -I../../third_party/abseil-cpp -I../../third_party/libyuv/include -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-builtin-macro-redefined -D__DATE__= -D__TIME__= -D__TIMESTAMP__= -funwind-tables -fPIC -pipe -pthread -m64 -march=x86-64 -Wall -Wno-unused-local-typedefs -Wno-maybe-uninitialized -Wno-deprecated-declarations -fno-delete-null-pointer-checks -Wno-comments -Wno-missing-field-initializers -Wno-unused-parameter -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -std=gnu++14 -Wno-narrowing -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../third_party/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.cc -o obj/third_party/webrtc/modules/rtp_rtcp/rtp_rtcp_format/rtp_rtcp_defines.o
In file included from ../../third_party/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h:18:0,
                 from ../../third_party/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.cc:11:
../../third_party/abseil-cpp/absl/types/variant.h: In substitution of 'template<long unsigned int I, class T> using variant_alternative_t = typename absl::variant_alternative::type [with long unsigned int I = I; T = absl::variant<webrtc::AudioPayload, webrtc::VideoPayload>]':
../../third_party/abseil-cpp/absl/types/variant.h:500:7:   required by substitution of 'template<class T, long unsigned int I, class Tj, absl::enable_if_t<std::is_constructible<Tj, T>::value, void>* <anonymous> > constexpr absl::variant<webrtc::AudioPayload, webrtc::VideoPayload>::variant(T&&) [with T = const absl::variant<webrtc::AudioPayload, webrtc::VideoPayload>&; long unsigned int I = <missing>; Tj = <missing>; absl::enable_if_t<std::is_constructible<Tj, T>::value, void>* <anonymous> = <missing>]'
../../third_party/webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.cc:50:51:   required from here
../../third_party/abseil-cpp/absl/types/variant.h:500:7: internal compiler error: unexpected expression 'I' of kind template_parm_index
       class Tj = absl::variant_alternative_t<I, variant>,
       ^~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccSgROkE.out file, please attach this to your bugreport.

Version-Release number of selected component (if applicable):
devtoolset-7-gcc-7.3.1-5.13.el7.x86_64
devtoolset-7-gcc-c++-7.3.1-5.13.el7.x86_64

How reproducible:
Try to rebuild iridium-browser-2018.11.71-1.el7.src.rpm

Actual results:
internal compiler error: unexpected expression 'I' of kind template_parm_index

Expected results:
No internal compiler error.

Additional info:
I don't know why /tmp/ccSgROkE.out, /tmp/cczQpooc.out and /tmp/ccsYtpoc.out do not exist, otherwise I would have attached them.

Comment 2 Robert Scheck 2018-12-28 14:44:02 UTC
This is likely already fixed upstream, because devtoolset-8-gcc-8.2.1-3.el7.x86_64 and devtoolset-8-gcc-c++-8.2.1-3.el7.x86_64 are working as expected. Thus a backport to devtoolset-7 might make sense.

Comment 3 Marek Polacek 2019-01-03 16:39:15 UTC

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