public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67398] New: Segfault when template static references another template Date: Sun, 30 Aug 2015 07:23:00 -0000 [thread overview] Message-ID: <bug-67398-4@http.gcc.gnu.org/bugzilla/> (raw) 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. >From gcc-bugs-return-495880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 30 07:25:29 2015 Return-Path: <gcc-bugs-return-495880-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 53532 invoked by alias); 30 Aug 2015 07:25:28 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 53499 invoked by uid 48); 30 Aug 2015 07:25:24 -0000 From: "jeanmichael.celerier at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67398] Segfault when template static references another template Date: Sun, 30 Aug 2015 07:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 5.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jeanmichael.celerier at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-67398-4-viHfbfCG2A@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-67398-4@http.gcc.gnu.org/bugzilla/> References: <bug-67398-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg02022.txt.bz2 Content-length: 360 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67398 --- Comment #1 from Jean-Michaël Celerier <jeanmichael.celerier at gmail dot com> --- I couldn't upload the attachment here (>1mb) so here is the preprocessed source : https://gist.githubusercontent.com/jcelerier/6e67a053e08188cac07f/raw/b74ad5be0dcc12ff230cc7212fe5fa94b6413686/gccsegfault.cpp >From gcc-bugs-return-495882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 30 07:31:36 2015 Return-Path: <gcc-bugs-return-495882-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org> Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 67544 invoked by alias); 30 Aug 2015 07:31:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: <gcc-bugs.gcc.gnu.org> List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/> List-Post: <mailto:gcc-bugs@gcc.gnu.org> List-Help: <mailto:gcc-bugs-help@gcc.gnu.org> Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 67128 invoked by uid 48); 30 Aug 2015 07:31:32 -0000 From: "egall at gwmail dot gwu.edu" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/67363] [6 Regression] r227188 breaks build for mingw-w64 Date: Sun, 30 Aug 2015 07:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egall at gwmail dot gwu.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: dmalcolm at redhat dot com X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: <bug-67363-4-WaTbiKDrOQ@http.gcc.gnu.org/bugzilla/> In-Reply-To: <bug-67363-4@http.gcc.gnu.org/bugzilla/> References: <bug-67363-4@http.gcc.gnu.org/bugzilla/> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg02024.txt.bz2 Content-length: 774 https://gcc.gnu.org/bugzilla/show_bug.cgi?idg363 --- Comment #2 from Eric Gallager <egall at gwmail dot gwu.edu> --- Actually on further investigation, libiberty should already provide a strndup implementation, the issue is just that it's not getting picked up here... I'm not sure whether it would be better to put a declaration for it in include/libiberty.h or in gcc/system.h though? Or both? The former seems like the more correct location, but the latter was the one that actually worked, so... I guess I should attach a patch for the latter then? Along with the proper configure changes required for the ifdefs to work properly, that is... (anyways, that's just the strndup part of the issue; I have no clue about the setenv/unsetenv part in the original bug...)
next reply other threads:[~2015-08-30 7:23 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-08-30 7:23 jeanmichael.celerier at gmail dot com [this message] 2015-08-30 7:31 ` [Bug c++/67398] " jeanmichael.celerier at gmail dot com 2015-08-30 9:30 ` trippels at gcc dot gnu.org 2015-08-30 11:38 ` miyuki at gcc dot gnu.org 2015-08-30 12:08 ` miyuki at gcc dot gnu.org 2015-08-30 14:32 ` miyuki at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-67398-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).