[Bug c++/67398] New: Segfault when template static references another template
jeanmichael.celerier at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Aug 30 07:23:00 GMT 2015
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.
More information about the Gcc-bugs
mailing list