public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66254] New: Member function shadowing enum classes
@ 2015-05-22 18:34 vini.ipsmaker at gmail dot com
  2015-05-23 19:23 ` [Bug c++/66254] " daniel.kruegler at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vini.ipsmaker at gmail dot com @ 2015-05-22 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66254
           Summary: Member function shadowing enum classes
           Product: gcc
           Version: 5.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vini.ipsmaker at gmail dot com
  Target Milestone: ---

Created attachment 35600
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35600&action=edit
The test code to trigger the error

The attached code compiles fine on clang, but fails with GCC. C++11 mode is
required to compile the code.


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

* [Bug c++/66254] Member function shadowing enum classes
  2015-05-22 18:34 [Bug c++/66254] New: Member function shadowing enum classes vini.ipsmaker at gmail dot com
@ 2015-05-23 19:23 ` daniel.kruegler at googlemail dot com
  2015-06-23 15:38 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2015-05-23 19:23 UTC (permalink / raw)
  To: gcc-bugs

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

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 problem seems to be fixed in gcc HEAD 6.0.0 20150523 (experimental)
>From gcc-bugs-return-487155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat May 23 19:29:54 2015
Return-Path: <gcc-bugs-return-487155-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59052 invoked by alias); 23 May 2015 19:29:54 -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 59037 invoked by uid 48); 23 May 2015 19:29:50 -0000
From: "bruno.manga95 at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66266] Abbreviated function template does not behave as expected
Date: Sat, 23 May 2015 19:29: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: bruno.manga95 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:
Message-ID: <bug-66266-4-UuASasszdr@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66266-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66266-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/msg01995.txt.bz2
Content-length: 315

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

--- Comment #1 from Bruno Manganelli <bruno.manga95 at gmail dot com> ---
Probably another symptom of
https://gcc.gnu.org/bugzilla/show_bug.cgi?idd969

as inverting the arguments for auto_sum does not cause the assertion to fail.
Apologies for the duplicate.


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

* [Bug c++/66254] Member function shadowing enum classes
  2015-05-22 18:34 [Bug c++/66254] New: Member function shadowing enum classes vini.ipsmaker at gmail dot com
  2015-05-23 19:23 ` [Bug c++/66254] " daniel.kruegler at googlemail dot com
@ 2015-06-23 15:38 ` paolo.carlini at oracle dot com
  2015-06-23 15:43 ` paolo at gcc dot gnu.org
  2015-06-23 15:43 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-06-23 15:38 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Dup of c++/60994. Let's play safe and add the testcase.


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

* [Bug c++/66254] Member function shadowing enum classes
  2015-05-22 18:34 [Bug c++/66254] New: Member function shadowing enum classes vini.ipsmaker at gmail dot com
  2015-05-23 19:23 ` [Bug c++/66254] " daniel.kruegler at googlemail dot com
  2015-06-23 15:38 ` paolo.carlini at oracle dot com
@ 2015-06-23 15:43 ` paolo at gcc dot gnu.org
  2015-06-23 15:43 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-06-23 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Jun 23 15:42:31 2015
New Revision: 224851

URL: https://gcc.gnu.org/viewcvs?rev=224851&root=gcc&view=rev
Log:
2015-06-23  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/66254
        * g++.dg/cpp0x/scoped_enum5.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/scoped_enum5.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/66254] Member function shadowing enum classes
  2015-05-22 18:34 [Bug c++/66254] New: Member function shadowing enum classes vini.ipsmaker at gmail dot com
                   ` (2 preceding siblings ...)
  2015-06-23 15:43 ` paolo at gcc dot gnu.org
@ 2015-06-23 15:43 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-06-23 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |6.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.


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

end of thread, other threads:[~2015-06-23 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 18:34 [Bug c++/66254] New: Member function shadowing enum classes vini.ipsmaker at gmail dot com
2015-05-23 19:23 ` [Bug c++/66254] " daniel.kruegler at googlemail dot com
2015-06-23 15:38 ` paolo.carlini at oracle dot com
2015-06-23 15:43 ` paolo at gcc dot gnu.org
2015-06-23 15:43 ` 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).