From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48783 invoked by alias); 30 Aug 2015 11:38:34 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 48753 invoked by uid 48); 30 Aug 2015 11:38:30 -0000 From: "miyuki at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67398] Segfault when template static references another template Date: Sun, 30 Aug 2015 11:38: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: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: miyuki at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_status cf_reconfirmed_on cc everconfirmed Message-ID: In-Reply-To: References: 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/msg02040.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67398 Mikhail Maltsev 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 --- 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::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{}.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.