public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code
@ 2015-05-02 0:37 philipp.classen at gmx dot net
2015-05-04 10:46 ` [Bug c++/65973] " mpolacek at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: philipp.classen at gmx dot net @ 2015-05-02 0:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
Bug ID: 65973
Summary: Current gcc 6 snapshot fails with segmentation fault
when compiling C++14 code
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: blocker
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: philipp.classen at gmx dot net
Target Milestone: ---
Created attachment 35439
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35439&action=edit
gzipped output of "-freport-bug"
Current gcc 6 snapshot fails to compile C++14 code:
internal compiler error: Segmentation fault
g++ -freport-bug -DHAVE_CONFIG_H -I. -Wall -Wfatal-errors -Wextra
-Wno-type-limits -Wstrict-aliasing -Wvla -Wdisabled-optimization
-Wdouble-promotion -pipe --std=c++1y -D
EXTENDED_PARALLEL_LOGGING__DEPENDS_ON_TARGET__ -DUSE_TABLEBASES
-DUSE_NALIMOV_TABLEBASES -DENABLE_GHOST_HTTP_SERVER -DUSE_BITBASES
-DUSE_SINGLE_PAWN_BITBASES -DUSE_TWO_PAWNS_BITBASES -DUSE_RAMMED_PAWNS_BITBASES
-g3 -I gmock-bundle/include -I gmock-bundle/gtest/include -g -MT
debug-ghost.o -MD -MP -MF .deps/debug-ghost.Tpo -c -o debug-ghost.o `test -f
'ghost.cpp' || echo './'`ghost.cpp
In file included from evaluation.h:8:0,
from ghost.cpp:15:
evaluation_value.h: In constructor ‘constexpr
GhostEvaluation::OptimizedForAdding::VALUE::VALUE(int, int)’:
evaluation_value.h:243:5: internal compiler error: Segmentation fault
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.archlinux.org/> for instructions.
Preprocessed source stored into /tmp/ccyVvJtP.out file, please attach this to
your bugreport.
>From gcc-bugs-return-485218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 02 01:19:40 2015
Return-Path: <gcc-bugs-return-485218-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 43403 invoked by alias); 2 May 2015 01:19:40 -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 43351 invoked by uid 48); 2 May 2015 01:19:35 -0000
From: "vz-gcc at zeitlins dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/65974] New: Bogus deprecated-declarations warnings for inline definitions of deprecated virtual methods
Date: Sat, 02 May 2015 01:19: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: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vz-gcc at zeitlins dot org
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-65974-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/msg00058.txt.bz2
Content-length: 3306
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide974
Bug ID: 65974
Summary: Bogus deprecated-declarations warnings for inline
definitions of deprecated virtual methods
Product: gcc
Version: 5.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vz-gcc at zeitlins dot org
Target Milestone: ---
Consider the following example:
% cat -n deprdecl.cpp
1 struct S {
2 void bar();
3
4 __attribute__((deprecated("use bar() instead.")))
5 virtual void foo();
6 };
7
8 inline void S::foo() { bar(); }
9
10 int main()
11 {
12 return 0;
13 }
% g++-5 -c -Wall deprdecl.cpp
deprdecl.cpp:13:1: warning: 'virtual void S::foo()' is deprecated: use
bar() instead. [-Wdeprecated-declarations]
}
^
deprdecl.cpp:8:13: note: declared here
inline void S::foo() { bar(); }
^
I believe this warning shouldn't appear when the deprecated method is just
being defined and not used. Notice that it indeed does not appear if the method
is either not virtual (i.e. remove "virtual" in line 5) or is defined inline
(i.e. move the body from line 8 to line 5). Nor does it appear with 4.9.
Also notice that the warning location is always the last line of the last
function in the file and has nothing to do with the function it complains
about.
This warning may look like not a big deal, but when compiling my real code it
occurs many thousands times making it impossible to use deprecated attribute
with g++ 5.1.
Compiler information:
% g++-5 -v
Using built-in specs.
COLLECT_GCC=g++-5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 5.1.1-2'
--with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=c++11 --enable-gnu-unique-object
--disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 5.1.1 (Debian 5.1.1-2)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65973] segmentation fault when compiling C++14 code
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
2015-05-04 10:46 ` [Bug c++/65973] " mpolacek at gcc dot gnu.org
@ 2015-05-04 10:46 ` mpolacek at gcc dot gnu.org
2015-06-19 18:16 ` [Bug c++/65973] [5/6 Regression] " jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-05-04 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r217663.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65973] segmentation fault when compiling C++14 code
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
@ 2015-05-04 10:46 ` mpolacek at gcc dot gnu.org
2015-05-04 10:46 ` mpolacek at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-05-04 10:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rhalbersma at gmail dot com
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
*** Bug 65985 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65973] [5/6 Regression] segmentation fault when compiling C++14 code
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
2015-05-04 10:46 ` [Bug c++/65973] " mpolacek at gcc dot gnu.org
2015-05-04 10:46 ` mpolacek at gcc dot gnu.org
@ 2015-06-19 18:16 ` jason at gcc dot gnu.org
2015-06-19 18:25 ` jason at gcc dot gnu.org
2015-06-22 12:20 ` trippels at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-19 18:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 19 18:15:30 2015
New Revision: 224677
URL: https://gcc.gnu.org/viewcvs?rev=224677&root=gcc&view=rev
Log:
PR c++/65973
* constexpr.c (build_constexpr_constructor_member_initializers):
Handle an empty STATEMENT_LIST.
Added:
trunk/gcc/testsuite/g++.dg/cpp1y/constexpr-empty1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/constexpr.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65973] [5/6 Regression] segmentation fault when compiling C++14 code
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
` (2 preceding siblings ...)
2015-06-19 18:16 ` [Bug c++/65973] [5/6 Regression] " jason at gcc dot gnu.org
@ 2015-06-19 18:25 ` jason at gcc dot gnu.org
2015-06-22 12:20 ` trippels at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-19 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 19 18:24:24 2015
New Revision: 224682
URL: https://gcc.gnu.org/viewcvs?rev=224682&root=gcc&view=rev
Log:
PR c++/65973
* constexpr.c (build_constexpr_constructor_member_initializers):
Handle an empty STATEMENT_LIST.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp1y/constexpr-empty1.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/constexpr.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/65973] [5/6 Regression] segmentation fault when compiling C++14 code
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
` (3 preceding siblings ...)
2015-06-19 18:25 ` jason at gcc dot gnu.org
@ 2015-06-22 12:20 ` trippels at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-06-22 12:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65973
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-22 12:20 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 0:37 [Bug c++/65973] New: Current gcc 6 snapshot fails with segmentation fault when compiling C++14 code philipp.classen at gmx dot net
2015-05-04 10:46 ` [Bug c++/65973] " mpolacek at gcc dot gnu.org
2015-05-04 10:46 ` mpolacek at gcc dot gnu.org
2015-06-19 18:16 ` [Bug c++/65973] [5/6 Regression] " jason at gcc dot gnu.org
2015-06-19 18:25 ` jason at gcc dot gnu.org
2015-06-22 12:20 ` trippels 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).