This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67398] New: Segfault when template static references another template
- From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Aug 2015 07:22:54 +0000
- Subject: [Bug c++/67398] New: Segfault when template static references another template
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67398
Bug ID: 67398
Summary: Segfault when template static references another
template
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jeanmichael.celerier at gmail dot com
Target Milestone: ---
Error given by gcc :
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp
: dans l'instantiation de âconst qt_meta_stringdata_NotifyingMap_t
staticStringData<ConstraintModel>â :
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:57:29:
required from âconst QMetaObject
NotifyingMap<ConstraintModel>::staticMetaObjectâ
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:73:172:
required from here
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:31:3:
erreur interne du compilateur: Erreur de segmentation
} staticStringData{};
^
Rough translation of the last line : Internal Compiler Error : segmentation
fault.
The relevant part starts at line 196141 of the attached preprocessed source.
It started when I added a template at line 196240 :
staticStringData<T>.data,
The "required from here" refers to an usage of staticMetaObject in code.
Requires -fPIC and -std=c++14.