public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58853] [4.9 regression] ICE in expand_set_or_movmem_prologue_epilogue_by_misaligned_moves
Date: Mon, 11 Nov 2013 20:12:00 -0000	[thread overview]
Message-ID: <bug-58853-4-JRVXi7max0@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-58853-4@http.gcc.gnu.org/bugzilla/>

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

Uroš Bizjak <ubizjak at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86
             Status|ASSIGNED                    |RESOLVED
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2013-11/msg01205.htm
                   |                            |l
         Resolution|---                         |FIXED

--- Comment #13 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed.
>From gcc-bugs-return-434309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 11 20:14:58 2013
Return-Path: <gcc-bugs-return-434309-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 16590 invoked by alias); 11 Nov 2013 20:14:58 -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 16485 invoked by uid 48); 11 Nov 2013 20:14:55 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/47642] real(kind\x16) - libquadmath - segfault on amd64 FreeBSD
Date: Mon, 11 Nov 2013 20:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 4.6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-47642-4-crlqaaSu9V@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-47642-4@http.gcc.gnu.org/bugzilla/>
References: <bug-47642-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: 2013-11/txt/msg01086.txt.bz2
Content-length: 129

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

--- Comment #24 from Uroš Bizjak <ubizjak at gmail dot com> ---
Fixed?
>From gcc-bugs-return-434310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 11 20:32:38 2013
Return-Path: <gcc-bugs-return-434310-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27824 invoked by alias); 11 Nov 2013 20:32:37 -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 27795 invoked by uid 48); 11 Nov 2013 20:32:34 -0000
From: "ahu at ds9a dot nl" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59079] New: a lambda with a parameter that depends on vector<>::value_type typedef leads to compiler error
Date: Mon, 11 Nov 2013 20:32: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: 4.8.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ahu at ds9a dot nl
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created
Message-ID: <bug-59079-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: 2013-11/txt/msg01087.txt.bz2
Content-length: 1865

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

            Bug ID: 59079
           Summary: a lambda with a parameter that depends on
                    vector<>::value_type typedef leads to compiler error
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ahu at ds9a dot nl

Created attachment 31194
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31194&action=edit
small test file that fails to compile

Thanks for the c++2011 support, it makes me happy! However, the following fails
to compile in g++ 4.6.3 and 4.8.3 (at least), and I think it is valid c++2011.

#include <vector>
#include <functional>

template<typename T>
void buildvect(const T& vect, 
          std::function<double(typename T::value_type)> yTransform)
{}

int main()
{
  std::vector<int> blah{1,2,3,4};
  buildvect(blah, [](int a) { return 1.0*a;});
}

Delivers:
t.cc: In function ‘int main()’:
t.cc:12:45: error: no matching function for call to
‘buildvect(std::vector<int>&, main()::__lambda0)’
   buildvect(blah, [](int a) { return 1.0*a;});
                                             ^
t.cc:12:45: note: candidate is:
t.cc:5:6: note: template<class T> void buildvect(const T&,
std::function<double(typename T::value_type)>)
 void buildvect(const T& vect, 
      ^
t.cc:5:6: note:   template argument deduction/substitution failed:
t.cc:12:45: note:   ‘main()::__lambda0’ is not derived from
‘std::function<double(typename T::value_type)>’
   buildvect(blah, [](int a) { return 1.0*a;});
                                             ^
Does compile in clang 3.3, does compile if T::value_type is replaced by int.

Thanks!
>From gcc-bugs-return-434311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Nov 11 20:53:30 2013
Return-Path: <gcc-bugs-return-434311-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 5467 invoked by alias); 11 Nov 2013 20:53:30 -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 5439 invoked by uid 48); 11 Nov 2013 20:53:26 -0000
From: "reichelt at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59080] New: [4.9 Regression] [c++11] ICE with array of auto
Date: Mon, 11 Nov 2013 20:53: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: reichelt at gcc dot gnu.org
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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-59080-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-11/txt/msg01088.txt.bz2
Content-length: 1961

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

            Bug ID: 59080
           Summary: [4.9 Regression] [c++11] ICE with array of auto
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: reichelt at gcc dot gnu.org

The following invalid code snippet (compiled with "-std=c++11") triggers an ICE
on trunk:

=============================#include <initializer_list>

auto foo[] = {};
=============================
bug.cc:3:15: internal compiler error: Segmentation fault
 auto foo[] = {};
               ^
0xb2a93f crash_signal
        ../../gcc/gcc/toplev.c:334
0x5dd6f9 tree_check5
        ../../gcc/gcc/tree.h:2792
0x5dd6f9 unify_array_domain
        ../../gcc/gcc/cp/pt.c:17027
0x5d46ae unify
        ../../gcc/gcc/cp/pt.c:17198
0x5ddf46 unify_one_argument
        ../../gcc/gcc/cp/pt.c:16100
0x5d2e73 type_unification_real
        ../../gcc/gcc/cp/pt.c:16172
0x5e6b82 do_auto_deduction(tree_node*, tree_node*, tree_node*)
        ../../gcc/gcc/cp/pt.c:21402
0x57846c cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/gcc/cp/decl.c:6162
0x6661b1 cp_parser_init_declarator
        ../../gcc/gcc/cp/parser.c:16693
0x66791f cp_parser_simple_declaration
        ../../gcc/gcc/cp/parser.c:11107
0x64b820 cp_parser_block_declaration
        ../../gcc/gcc/cp/parser.c:10988
0x66f2e7 cp_parser_declaration
        ../../gcc/gcc/cp/parser.c:10885
0x66e008 cp_parser_declaration_seq_opt
        ../../gcc/gcc/cp/parser.c:10771
0x66f896 cp_parser_translation_unit
        ../../gcc/gcc/cp/parser.c:4007
0x66f896 c_parse_file()
        ../../gcc/gcc/cp/parser.c:31107
0x790973 c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.c:1055
Please submit a full bug report, [etc.]

The regression appeared between 4.9.0 20131012 and 4.9.0 20131019.


  parent reply	other threads:[~2013-11-11 20:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-23 14:05 [Bug rtl-optimization/58853] New: [4.9 regression] ICE after r203937 ysrumyan at gmail dot com
2013-10-23 14:40 ` [Bug rtl-optimization/58853] " izamyatin at gmail dot com
2013-10-23 14:45 ` hubicka at gcc dot gnu.org
2013-10-23 17:52 ` [Bug target/58853] [4.9 regression] ICE in expand_set_or_movmem_prologue_epilogue_by_misaligned_moves ebotcazou at gcc dot gnu.org
2013-11-05  8:41 ` ubizjak at gmail dot com
2013-11-05  9:19 ` hubicka at ucw dot cz
2013-11-07 13:56 ` hjl.tools at gmail dot com
2013-11-11 16:41 ` hubicka at ucw dot cz
2013-11-11 16:55 ` ubizjak at gmail dot com
2013-11-11 17:04 ` ubizjak at gmail dot com
2013-11-11 20:02 ` uros at gcc dot gnu.org
2013-11-11 20:12 ` ubizjak at gmail dot com [this message]
2013-11-14 21:27 ` uros at gcc dot gnu.org
2013-11-14 21:30 ` ubizjak at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-58853-4-JRVXi7max0@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).