https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104078
Bug ID: 104078
Summary: Some type determination weirdness
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: linux at carewolf dot com
Target Milestone: ---
In an attempt to compile Qt and specifically Qt WebEngine with latest gcc 12
from git today, I git the follow weird error, from Skia inside Chromium inside
QtWebengine:
./../../../../../qtwebengine/src/3rdparty/chromium/third_party/skia/src/gpu/GrRefCnt.h:173:73:
error: ‘‘dependent_operator_type’ not supported by dump_type<type error>’ is
not a valid type for a template non-type parameter
173 | gr_sp<T, &T::addCommandBufferUsage,
&T::removeCommandBufferUsage>;
|
^
../../../../../../qtwebengine/src/3rdparty/chromium/third_party/skia/src/gpu/GrRefCnt.h:173:73:
error: ‘‘dependent_operator_type’ not supported by dump_type<type error>’ is
not a valid type for a template non-type parameter
The error triggers in C++17 mode only, and the file compiles fine in C++20 mode
(and in c++17 mode on older gccs, and clang and msvc, etc).