public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
Date: Thu, 15 Jan 2015 17:30:00 -0000	[thread overview]
Message-ID: <bug-64068-4-UaNqdOUYVr@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64068-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Thu Jan 15 17:29:23 2015
New Revision: 219672

URL: https://gcc.gnu.org/viewcvs?rev=219672&root=gcc&view=rev
Log:
Fix for PR64068 and PR64559.

    * g++.dg/ipa/pr64068.C: New test.
    * gcc.dg/ipa/PR64559.c: New test.
    PR ipa/64068
    PR ipa/64559
    * ipa.c (symbol_table::remove_unreachable_nodes):
    Do not put abstract origins into boundary.



Added:
    trunk/gcc/testsuite/g++.dg/ipa/pr64068.C
    trunk/gcc/testsuite/gcc.dg/ipa/PR64559.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa.c
    trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-473381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 17:31:01 2015
Return-Path: <gcc-bugs-return-473381-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9436 invoked by alias); 15 Jan 2015 17:31:01 -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 9387 invoked by uid 48); 15 Jan 2015 17:30:55 -0000
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/64068] [5 Regression] ICE: in remove_unreachable_nodes, at ipa.c:546
Date: Thu, 15 Jan 2015 17:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: ipa
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: marxin at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-64068-4-r21xjjPtfw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64068-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64068-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-01/txt/msg01375.txt.bz2
Content-length: 443

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

Martin Liška <marxin at gcc dot gnu.org> changed:

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

--- Comment #10 from Martin Liška <marxin at gcc dot gnu.org> ---
Fixed in 5.0.0.
>From gcc-bugs-return-473384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jan 15 18:02:41 2015
Return-Path: <gcc-bugs-return-473384-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 4248 invoked by alias); 15 Jan 2015 18:02: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 3591 invoked by uid 48); 15 Jan 2015 18:02:33 -0000
From: "petschy at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/64615] New: Access level check error: g++ thinks the non default ctor is protected while its public
Date: Thu, 15 Jan 2015 18:02: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: petschy at gmail dot com
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-64615-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-01/txt/msg01378.txt.bz2
Content-length: 1185

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

            Bug ID: 64615
           Summary: Access level check error: g++ thinks the non default
                    ctor is protected while its public
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: petschy at gmail dot com

Access level is changed from protected (base class) to public (derived class)
via using declaration. The default ctor and the two overloaded member functions
are accessible, however the non-default ctor is not, g++ complains that it's
protected.

g++ 4.9 and 5.0 (20150115) give the same error messages.
cmdline:
g++-5.0.0 -Wall -std=c++11 20150115-using_base_ctor.cpp

----8<---8<---8<---8<---
class B
{
protected:
        B() { }
        B(int) { }
        void Foo() { }
        void Foo(int) { }
};
class D : public B
{
public:
        using B::B;
        using B::Foo;
};
void d_ctor()
{
        D d;
}
void d_ctor2()
{
        D d(0); // !
}
void d_foo(D* d)
{
        d->Foo();
}
void d_foo2(D* d)
{
        d->Foo(0);
}


  parent reply	other threads:[~2015-01-15 17:30 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-25  9:50 [Bug ipa/64068] New: " trippels at gcc dot gnu.org
2014-11-25  9:52 ` [Bug ipa/64068] " rguenth at gcc dot gnu.org
2014-11-25 14:01 ` marxin at gcc dot gnu.org
2014-11-30 20:43 ` dimhen at gmail dot com
2014-12-02 17:39 ` burnus at gcc dot gnu.org
2014-12-20 10:04 ` adam at os dot inf.tu-dresden.de
2015-01-15  4:24 ` hubicka at gcc dot gnu.org
2015-01-15  4:27 ` hubicka at gcc dot gnu.org
2015-01-15 17:12 ` marxin at gcc dot gnu.org
2015-01-15 17:15 ` marxin at gcc dot gnu.org
2015-01-15 17:30 ` marxin at gcc dot gnu.org [this message]
2015-02-04 23:37 ` doko at gcc dot gnu.org
2015-02-05  0:28 ` wmi at gcc dot gnu.org
2015-02-19  0:44 ` ctice at gcc dot gnu.org

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-64068-4-UaNqdOUYVr@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).