public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58273] New: ICE: Segmentation fault with C++11
@ 2013-08-29 18:03 Woebbeking at web dot de
  2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Woebbeking at web dot de @ 2013-08-29 18:03 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3838 bytes --]

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

            Bug ID: 58273
           Summary: ICE: Segmentation fault with C++11
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Woebbeking at web dot de

Created attachment 30722
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30722&action=edit
Testcase

Hi,

I get an ICE with the attached test case when I compile with -std=c++11.

I'm using GCC 4.8.1 from Debian experimental (x86_64). The ICE happens with
4.7.3 too.

I don't get the ICE when I change the line to
  int i(B::goo(t));
  int const i = B::goo(t);


Cheers,
André
>From gcc-bugs-return-428649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 29 18:09:35 2013
Return-Path: <gcc-bugs-return-428649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27601 invoked by alias); 29 Aug 2013 18:09:35 -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 27538 invoked by uid 48); 29 Aug 2013 18:09:31 -0000
From: "skunk at iskunk dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/57316] [4.8/4.9 regression] build failure in libsanitizer
Date: Thu, 29 Aug 2013 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: skunk at iskunk dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-57316-4-HZe959yHP0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57316-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: 2013-08/txt/msg01573.txt.bz2
Content-length: 1228

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW316

--- Comment #7 from Daniel Richard G. <skunk at iskunk dot org> ---
Created attachment 30723
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id0723&actioníit
Trivial configure-time check

(In reply to Kostya Serebryany from comment #6)
>
> That would be non-trivial. We intercept the pthread_ functions so we can't
> call them directly. We'll at least need to bypass our own interceptors.
> And as I mentioned before, older kernels will likely not work anyway for
> a few other reasons.

Okay, so I guess there's no alternative but to disable libsanitizer for these
systems.

I see that libsanitizer support is inferred automatically by the
libsanitizer/configure.tgt script, which is sourced from the top-level
configure script. This script is not processed by Autoconf, so doing a
test-compile in there would be somewhat awkward. However, on this old Debian
system, the linux/futex.h header doesn't exist at all, so picking up on that
would be enough for me.

See attached patch for a first-draft proposal. (There probably needs to be some
build/host/target-sysroot awareness of where to look for the header; I'm not
familiar enough with building cross-compilers.)


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
@ 2013-08-29 18:19 ` paolo.carlini at oracle dot com
  2013-08-29 18:46 ` jakub at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-08-29 18:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-08-29
            Summary|ICE: Segmentation fault     |[4.7/4.8/4.9 Regression]
                   |with C++11                  |Segmentation fault with
                   |                            |C++11
     Ever confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
4.6.x is fine (with -std=c++0x)


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
  2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
@ 2013-08-29 18:46 ` jakub at gcc dot gnu.org
  2013-08-29 18:46 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-29 18:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.4


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
  2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
  2013-08-29 18:46 ` jakub at gcc dot gnu.org
@ 2013-08-29 18:46 ` jakub at gcc dot gnu.org
  2013-09-12 22:22 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-08-29 18:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Started with r172790.


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (2 preceding siblings ...)
  2013-08-29 18:46 ` jakub at gcc dot gnu.org
@ 2013-09-12 22:22 ` jason at gcc dot gnu.org
  2013-09-13 19:11 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2013-09-12 22:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (3 preceding siblings ...)
  2013-09-12 22:22 ` jason at gcc dot gnu.org
@ 2013-09-13 19:11 ` jason at gcc dot gnu.org
  2013-09-13 22:22 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2013-09-13 19:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Sep 13 19:11:23 2013
New Revision: 202576

URL: http://gcc.gnu.org/viewcvs?rev=202576&root=gcc&view=rev
Log:
    PR c++/58273
    * pt.c (any_type_dependent_elements_p): Actually check for
    type-dependence, not value-dependence.

Added:
    trunk/gcc/testsuite/g++.dg/template/inherit9.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (4 preceding siblings ...)
  2013-09-13 19:11 ` jason at gcc dot gnu.org
@ 2013-09-13 22:22 ` jason at gcc dot gnu.org
  2013-09-13 22:38 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2013-09-13 22:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Sep 13 22:22:31 2013
New Revision: 202580

URL: http://gcc.gnu.org/viewcvs?rev=202580&root=gcc&view=rev
Log:
    PR c++/58273
    * pt.c (any_type_dependent_elements_p): Actually check for
    type-dependence, not value-dependence.

Added:
    branches/gcc-4_8-branch/gcc/testsuite/g++.dg/template/inherit9.C
Modified:
    branches/gcc-4_8-branch/gcc/cp/ChangeLog
    branches/gcc-4_8-branch/gcc/cp/pt.c


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (5 preceding siblings ...)
  2013-09-13 22:22 ` jason at gcc dot gnu.org
@ 2013-09-13 22:38 ` jason at gcc dot gnu.org
  2013-09-13 22:39 ` jason at gcc dot gnu.org
  2013-09-16 17:02 ` Woebbeking at web dot de
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2013-09-13 22:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Sep 13 22:38:42 2013
New Revision: 202583

URL: http://gcc.gnu.org/viewcvs?rev=202583&root=gcc&view=rev
Log:
    PR c++/58273
    * pt.c (any_type_dependent_elements_p): Actually check for
    type-dependence, not value-dependence.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/template/inherit9.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/pt.c


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (6 preceding siblings ...)
  2013-09-13 22:38 ` jason at gcc dot gnu.org
@ 2013-09-13 22:39 ` jason at gcc dot gnu.org
  2013-09-16 17:02 ` Woebbeking at web dot de
  8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2013-09-13 22:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.7.4/4.8.2/4.9.0.


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

* [Bug c++/58273] [4.7/4.8/4.9 Regression] Segmentation fault with C++11
  2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
                   ` (7 preceding siblings ...)
  2013-09-13 22:39 ` jason at gcc dot gnu.org
@ 2013-09-16 17:02 ` Woebbeking at web dot de
  8 siblings, 0 replies; 10+ messages in thread
From: Woebbeking at web dot de @ 2013-09-16 17:02 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58273

--- Comment #7 from André Wöbbeking <Woebbeking at web dot de> ---
Thanks!
>From gcc-bugs-return-429921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 16 17:54:16 2013
Return-Path: <gcc-bugs-return-429921-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 32569 invoked by alias); 16 Sep 2013 17:54:16 -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 32517 invoked by uid 48); 16 Sep 2013 17:54:11 -0000
From: "d.frey at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58435] Applying a type transformation to a list: const ignored
Date: Mon, 16 Sep 2013 17:54: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.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: d.frey at gmx dot de
X-Bugzilla-Status: NEW
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-58435-4-bnaOxWKm0S@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58435-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58435-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: 2013-09/txt/msg01161.txt.bz2
Content-length: 805

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX435

Daniel Frey <d.frey at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |d.frey at gmx dot de

--- Comment #1 from Daniel Frey <d.frey at gmx dot de> ---
Note that it is triggered by the 'using', if you replace the mapping by

   template <typename T> struct map { typedef const T type; };

and adapt 'apply' like this:

   template <
       template <typename...> class F,
       template <typename...> class L, typename... T
   > struct apply <F, L <T...> > { typedef L <typename F <T>::type...> type; };

the result changes to the expected:

  undefined reference to `void dummy<A<int const> >()'


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

end of thread, other threads:[~2013-09-16 17:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
2013-08-29 18:46 ` jakub at gcc dot gnu.org
2013-08-29 18:46 ` jakub at gcc dot gnu.org
2013-09-12 22:22 ` jason at gcc dot gnu.org
2013-09-13 19:11 ` jason at gcc dot gnu.org
2013-09-13 22:22 ` jason at gcc dot gnu.org
2013-09-13 22:38 ` jason at gcc dot gnu.org
2013-09-13 22:39 ` jason at gcc dot gnu.org
2013-09-16 17:02 ` Woebbeking at web dot de

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