public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
@ 2015-05-31 5:33 su at cs dot ucdavis.edu
2015-06-01 8:17 ` [Bug tree-optimization/66349] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: su at cs dot ucdavis.edu @ 2015-05-31 5:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
Bug ID: 66349
Summary: ICE on valid code at -O1, -O2 and -O3 on
x86_64-linux-gnu in dfs_enumerate_from, at
cfganal.c:1195
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: su at cs dot ucdavis.edu
Target Milestone: ---
The following code causes an ICE when compiled with the current gcc trunk at
-O1, -O2 and -O3 on x86_64-linux-gnu in both 32-bit and 64-bit modes.
It is a regression from 5.1.x.
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/6.0.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/usr/local/gcc-trunk
--enable-languages=c,c++ --disable-werror --enable-multilib
Thread model: posix
gcc version 6.0.0 20150530 (experimental) [trunk revision 223885] (GCC)
$
$ gcc-trunk -O0 -c small.c
$ gcc-trunk -Os -c small.c
$ gcc-5.1 -O1 -c small.c
$
$ gcc-trunk -O1 -c small.c
small.c: In function ‘fn1’:
small.c:5:1: internal compiler error: in dfs_enumerate_from, at cfganal.c:1195
fn1 ()
^
0x6d8a09 dfs_enumerate_from(basic_block_def*, int, bool (*)(basic_block_def
const*, void const*), basic_block_def**, int, void const*)
../../gcc-trunk/gcc/cfganal.c:1195
0xcd02e5 determine_bb_domination_status
../../gcc-trunk/gcc/tree-ssa-threadupdate.c:1768
0xcd02e5 thread_through_loop_header
../../gcc-trunk/gcc/tree-ssa-threadupdate.c:1953
0xcd253a thread_through_all_blocks(bool)
../../gcc-trunk/gcc/tree-ssa-threadupdate.c:2667
0xc1354b execute
../../gcc-trunk/gcc/tree-ssa-dom.c:1244
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
$
-------------------------------------
unsigned int a;
int b, c, d, e, f;
void
fn1 ()
{
for (; b; b++)
{
for (e = 0; e < 1; e++)
;
int i = -1, j = 1;
if (f)
{
for (; a < 1; a++)
;
i++;
j = 0;
}
for (; d; d++)
{
if (j)
for (;; c++)
;
if (i)
continue;
return;
}
}
}
>From gcc-bugs-return-487644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun May 31 05:54:30 2015
Return-Path: <gcc-bugs-return-487644-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4823 invoked by alias); 31 May 2015 05:54: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 4718 invoked by uid 48); 31 May 2015 05:54:20 -0000
From: "vgheorgh at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66350] New: typename should be forbidden in inhering constructors
Date: Sun, 31 May 2015 05:54:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vgheorgh 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66350-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-05/txt/msg02484.txt.bz2
Content-length: 1053
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf350
Bug ID: 66350
Summary: typename should be forbidden in inhering constructors
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vgheorgh at gmail dot com
Target Milestone: ---
The code below
#include <memory>
template <class T, class Deleter = std::default_delete<T>>
class unique_ptr_wrapper: public std::unique_ptr<T, Deleter>
{
public:
using typename std::unique_ptr<T, Deleter>::unique_ptr; // typename should
be forbidden here
};
int main()
{
unique_ptr_wrapper<int> upw{new int{42}};
}
should be ill formed (no typename required), since we inherit a constructor,
which is not a dependent type. IMO, a diagnostic should be required, however
g++ compiles the program without any warnings.
Tested with gcc4.9/5.1/6 HEAD.
More details: http://stackoverflow.com/q/30554119/3093378
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/66349] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
@ 2015-06-01 8:17 ` rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Mine.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/66349] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
2015-06-01 8:17 ` [Bug tree-optimization/66349] " rguenth at gcc dot gnu.org
@ 2015-06-01 13:59 ` rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 13:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Patch reverted.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/66349] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
2015-06-01 8:17 ` [Bug tree-optimization/66349] " rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
@ 2015-06-01 13:59 ` rguenth at gcc dot gnu.org
2015-06-01 14:00 ` rguenth at gcc dot gnu.org
2015-06-02 14:35 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 13:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Mon Jun 1 13:58:50 2015
New Revision: 223980
URL: https://gcc.gnu.org/viewcvs?rev=223980&root=gcc&view=rev
Log:
2015-06-01 Richard Biener <rguenther@suse.de>
PR tree-optimization/66349
PR tree-optimization/66352
PR tree-optimization/66357
* gcc.dg/torture/pr66357.c: New testcase.
* gcc.dg/torture/pr66349.c: Likewise.
* gfortran.fortran-torture/compile/pr66352.f90: Likewise.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr66349.c
trunk/gcc/testsuite/gcc.dg/torture/pr66357.c
trunk/gcc/testsuite/gfortran.fortran-torture/compile/pr66352.f90
Modified:
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/66349] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
` (2 preceding siblings ...)
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
@ 2015-06-01 14:00 ` rguenth at gcc dot gnu.org
2015-06-02 14:35 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-01 14:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
Bug 66349 depends on bug 66340, which changed state.
Bug 66340 Summary: [6 Regression] profiledbootstrap failure on x86-64 with LTO
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66340
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/66349] ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
` (3 preceding siblings ...)
2015-06-01 14:00 ` rguenth at gcc dot gnu.org
@ 2015-06-02 14:35 ` rguenth at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-06-02 14:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66349
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 66381 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-02 14:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-31 5:33 [Bug tree-optimization/66349] New: ICE on valid code at -O1, -O2 and -O3 on x86_64-linux-gnu in dfs_enumerate_from, at cfganal.c:1195 su at cs dot ucdavis.edu
2015-06-01 8:17 ` [Bug tree-optimization/66349] " rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
2015-06-01 13:59 ` rguenth at gcc dot gnu.org
2015-06-01 14:00 ` rguenth at gcc dot gnu.org
2015-06-02 14:35 ` rguenth at gcc dot gnu.org
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).