This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67398] Segfault when template static references another template


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]