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] Segfault when template static references another template
Date: Sun, 30 Aug 2015 07:31:00 -0000 [thread overview]
Message-ID: <bug-67398-4-mLu8fEwhkR@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-67398-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67398
--- Comment #2 from Jean-Michaël Celerier <jeanmichael.celerier at gmail dot com> ---
I now get this error :
/home/jcelerier/i-score/base/plugins/iscore-plugin-scenario/source/Process/ScenarioModel.cpp:63:
internal compiler error: in make_decl_rtl, at varasm.c:1313
constexpr const QMetaObject NotifyingMap<T>::staticMetaObject{
^
if I change the relevant part of the code to this :
template<typename T>
struct strdata_t
{
QByteArrayData data[5]{
QT_MOC_LITERAL_CUSTOM(0, 0, 12), // "NotifyingMap"
QT_MOC_LITERAL_CUSTOM(1, 13, 5), // "added"
QT_MOC_LITERAL_CUSTOM(2, 19, 0), // ""
QT_MOC_LITERAL_CUSTOM(3, 20, typeLength<T>()), // "T"
QT_MOC_LITERAL_CUSTOM(4, 21 + typeLength<T>(), 7) // "removed"
};
std::array<char, 29 + typeLength<T>()> stringdata0 =
concat("NotifyingMap\0added\0\0", T::className, "\0removed");
};
static const uint staticMetaData[31]{
// content:
7, // revision
0, // classname
0, 0, // classinfo
2, 14, // methods
0, 0, // properties
0, 0, // enums/sets
0, 0, // constructors
0, // flags
2, // signalCount
// signals: name, argc, parameters, tag, flags
1, 1, 24, 2, 0x06 /* Public */,
4, 1, 27, 2, 0x06 /* Public */,
// signals: parameters
QMetaType::Void, 0x80000000 | 3, 2,
QMetaType::Void, 0x80000000 | 3, 2,
0 // eod
};
template<typename T>
constexpr const QMetaObject NotifyingMap<T>::staticMetaObject{
{ &QObject::staticMetaObject,
strdata_t<T>{}.data,
staticMetaData, qt_static_metacall, Q_NULLPTR, Q_NULLPTR }
};
>From gcc-bugs-return-495883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Aug 30 08:22:51 2015
Return-Path: <gcc-bugs-return-495883-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26823 invoked by alias); 30 Aug 2015 08:22:50 -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 26749 invoked by uid 48); 30 Aug 2015 08:22:46 -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 08:22: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-sks7ePmn1C@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/msg02025.txt.bz2
Content-length: 340
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg363
--- Comment #3 from Eric Gallager <egall at gwmail dot gwu.edu> ---
Or actually, an even simpler solution to the strndup part of the bug would be
to just use xstrndup instead of strndup; then there's no worrying about which
header to add a declaration to, or anything related to that...
next prev parent reply other threads:[~2015-08-30 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-30 7:23 [Bug c++/67398] New: " jeanmichael.celerier at gmail dot com
2015-08-30 7:31 ` jeanmichael.celerier at gmail dot com [this message]
2015-08-30 9:30 ` [Bug c++/67398] " 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-mLu8fEwhkR@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: link
Be 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).