public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66602] std::tuple bug when constructed with temporary empty object
       [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
@ 2015-06-19 17:41 ` redi at gcc dot gnu.org
  2015-06-19 19:12 ` daniel.kruegler at googlemail dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-19 17:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2015-06-19
     Ever confirmed|0                           |1

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It works fine for me.

You haven't said what it prints for you, or even said which version of GCC you
are using so it's impossible to know if this is an ancient bug that was fixed
long ago.

Please provide the output of 'g++ -v' as requested by https://gcc.gnu.org/bugs/


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/66602] std::tuple bug when constructed with temporary empty object
       [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
  2015-06-19 17:41 ` [Bug c++/66602] std::tuple bug when constructed with temporary empty object redi at gcc dot gnu.org
@ 2015-06-19 19:12 ` daniel.kruegler at googlemail dot com
  2015-06-20  2:11 ` so61pi.re at gmail dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2015-06-19 19:12 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
It seems that gcc 5.1.0 produces a random value such as

557195712

or

-214982144

for the first output statement when compiled against C++11 or beyond that C++
target version. It seems, though, that the current head (tested agains gcc HEAD
6.0.0 20150619 (experimental)) has fixed that problem.
>From gcc-bugs-return-489456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 19 19:13:53 2015
Return-Path: <gcc-bugs-return-489456-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 12945 invoked by alias); 19 Jun 2015 19:13:53 -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 12916 invoked by uid 48); 19 Jun 2015 19:13:49 -0000
From: "daniel.kruegler at googlemail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66603] using std::cout causes segfault with unrelated array declaration
Date: Fri, 19 Jun 2015 19:13: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: daniel.kruegler at googlemail 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: cc
Message-ID: <bug-66603-4-pRmJQqUixZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66603-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66603-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-06/txt/msg01788.txt.bz2
Content-length: 569

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler@googlemail.
                   |                            |com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> ---
The segfault also occurs in the current head (tested: gcc HEAD 6.0.0 20150619
(experimental))
>From gcc-bugs-return-489457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 19 19:17:51 2015
Return-Path: <gcc-bugs-return-489457-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 19728 invoked by alias); 19 Jun 2015 19:17:51 -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 19670 invoked by uid 55); 19 Jun 2015 19:17:47 -0000
From: "jason at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66585] [5/6 Regression] Internal compiler error when initialize field with lambda
Date: Fri, 19 Jun 2015 19:17: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.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jason at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jason at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66585-4-EvWZ9HWT3L@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66585-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66585-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-06/txt/msg01789.txt.bz2
Content-length: 567

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf585

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 19 19:17:16 2015
New Revision: 224694

URL: https://gcc.gnu.org/viewcvs?rev"4694&root=gcc&view=rev
Log:
        PR c++/66585
        * pt.c (instantiate_class_template_1): Clear
        cp_unevaluated_operand and c_inhibit_evaluation_warnings.

Added:
    branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi8.C
Modified:
    branches/gcc-5-branch/gcc/cp/ChangeLog
    branches/gcc-5-branch/gcc/cp/pt.c


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/66602] std::tuple bug when constructed with temporary empty object
       [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
  2015-06-19 17:41 ` [Bug c++/66602] std::tuple bug when constructed with temporary empty object redi at gcc dot gnu.org
  2015-06-19 19:12 ` daniel.kruegler at googlemail dot com
@ 2015-06-20  2:11 ` so61pi.re at gmail dot com
  2015-06-20 12:22 ` redi at gcc dot gnu.org
  2015-08-04 10:01 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 5+ messages in thread
From: so61pi.re at gmail dot com @ 2015-06-20  2:11 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

--- Comment #3 from so61pi.re at gmail dot com ---
My current version of GCC is 5.1.0 on Windows, but I also tested on Linux with
same GCC version, and it produced the same bug, which printed random value like
Daniel Krügler have showed.

Apparently, this bug is fixed in gcc HEAD 6.0.0 20150619 (experimental).


My command line was:

g++ -std=c++14 main.cpp -o main.exe


And here is the output of 'g++ -v' on my system:

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=d:/tools/mingw/bin/../libexec/gcc/x86_64-w64-mingw32/5.1.0/l
to-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../src/configure --with-gmp=/c/temp/gcc/gmp
--with-mpfr=/c/temp/gcc/mpfr --with-mpc=/c/temp/gcc/mpc
--enable-languages=c,c++ --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32 --disable-multilib --prefix=/c/temp/gcc/dest
--with-sysroot=/c/temp/gcc/dest --disable-libstdcxx-pch --disable-nls
--disable-shared --disable-win32-registry --enable-checking=release
--with-tune=haswell
Thread model: win32
gcc version 5.1.0 (GCC)
>From gcc-bugs-return-489479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Jun 20 08:10:04 2015
Return-Path: <gcc-bugs-return-489479-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21465 invoked by alias); 20 Jun 2015 08:10:03 -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 21320 invoked by uid 48); 20 Jun 2015 08:09:59 -0000
From: "mikpelinux at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/66598] With -O3 gcc incorrectly assumes aligned SSE instructions (e.g. movapd) can be used
Date: Sat, 20 Jun 2015 08:10: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.9.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikpelinux 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: cc
Message-ID: <bug-66598-4-ZbDqRJ8cyC@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66598-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66598-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-06/txt/msg01811.txt.bz2
Content-length: 524

https://gcc.gnu.org/bugzilla/show_bug.cgi?idf598

Mikael Pettersson <mikpelinux at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mikpelinux at gmail dot com

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
I can reproduce the SEGV with current gcc-6, 5, and 4.9, but not with 4.8 or
4.7.
Dropping from -O3 to -O2 also prevents the SEGV.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/66602] std::tuple bug when constructed with temporary empty object
       [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
                   ` (2 preceding siblings ...)
  2015-06-20  2:11 ` so61pi.re at gmail dot com
@ 2015-06-20 12:22 ` redi at gcc dot gnu.org
  2015-08-04 10:01 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2015-06-20 12:22 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
      Known to work|                            |5.1.1, 6.0
            Version|unknown                     |5.1.0
      Known to fail|                            |5.1.0

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It also seems to be fixed in 5.1.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/66602] std::tuple bug when constructed with temporary empty object
       [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
                   ` (3 preceding siblings ...)
  2015-06-20 12:22 ` redi at gcc dot gnu.org
@ 2015-08-04 10:01 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-08-04 10:01 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66602

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Closing then.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-08-04 10:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-66602-4@http.gcc.gnu.org/bugzilla/>
2015-06-19 17:41 ` [Bug c++/66602] std::tuple bug when constructed with temporary empty object redi at gcc dot gnu.org
2015-06-19 19:12 ` daniel.kruegler at googlemail dot com
2015-06-20  2:11 ` so61pi.re at gmail dot com
2015-06-20 12:22 ` redi at gcc dot gnu.org
2015-08-04 10:01 ` paolo.carlini at oracle dot com

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).