From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 550 invoked by alias); 10 Nov 2013 13:22:10 -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 348 invoked by uid 48); 10 Nov 2013 13:22:03 -0000 From: "alexandre.hamez at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/59066] C+11, 'using' instead of 'typedef' causes a segmentation fault. Date: Sun, 10 Nov 2013 13:22: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: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alexandre.hamez at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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: short_desc 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: 2013-11/txt/msg00929.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59066 Alexandre Hamez changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Segmentation fault. |C+11, 'using' instead of | |'typedef' causes a | |segmentation fault. --- Comment #2 from Alexandre Hamez --- I've found what causes the crash. On line 1199 of bug.ii, if 'using data_type = variant>' is changed to 'typedef variant> data_type', the segmentation no longer occurs [1]. I changed the summary to reflect that. [1] Note that this particular code will fail to compile because of a missing member.