[Bug c++/67398] Segfault when template static references another template
miyuki at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Aug 30 11:38:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67398
Mikhail Maltsev <miyuki at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-08-30
CC| |miyuki at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #4 from Mikhail Maltsev <miyuki at gcc dot gnu.org> ---
For the second testcase (ICE in varasm.c) Clang says:
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:57:46:
error: constexpr variable 'staticMetaObject' must be initialized by a constant
expression
constexpr const QMetaObject NotifyingMap<T>::staticMetaObject{
^ ~
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:57:46:
note: pointer to subobject of temporary is not a constant expression
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:59:22:
note: temporary created here
strdata_t<T>{}.data,
Thus, also ICE on invalid, and it does not reproduce on trunk (but looks like
it turned into accepts-invalid). The first ICE does reproduce.
I'll post a reduced testcase shortly.
More information about the Gcc-bugs
mailing list