public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61661] New: [C++11][4.9/4.10 Regression] Bogus error: ‘const Outer::Foo{&Outer::Bar}’ is not a constant expression
@ 2014-06-30 18:16 brooks at gcc dot gnu.org
  2014-07-07  8:47 ` [Bug c++/61661] " paolo.carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: brooks at gcc dot gnu.org @ 2014-06-30 18:16 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61661
           Summary: [C++11][4.9/4.10 Regression] Bogus error: ‘const
                    Outer::Foo{&Outer::Bar}’ is not a constant expression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: brooks at gcc dot gnu.org

Google ref: b/15984570

This source:

/// --- cut ---
struct Outer {

  void Bar();

  struct Foo {
    void (Outer::*ptr)() ;
  };

  static constexpr Foo foo = { &Outer::Bar };
};
/// --- cut ---

compiles fine with gcc-4.8 and Clang, fails with gcc-4_9 and current trunk.
Started to fail after r195189 and before r197259 (boundaries are not exact).

./gcc-svn-r211990/bin/g++ -c -std=c++11 -o /tmp/t.o /tmp/t.cc
/tmp/t.cc:9:44: error: ‘const Outer::Foo{&Outer::Bar}’ is not a constant
expression
   static constexpr Foo foo = { &Outer::Bar };
                                            ^
>From gcc-bugs-return-455382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Jun 30 18:25:42 2014
Return-Path: <gcc-bugs-return-455382-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 15307 invoked by alias); 30 Jun 2014 18:25:41 -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 14982 invoked by uid 48); 30 Jun 2014 18:25:36 -0000
From: "mrs at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/52268] native tls support should be added for darwin11
Date: Mon, 30 Jun 2014 18:25:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.7.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: mrs at gcc dot gnu.org
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:
Message-ID: <bug-52268-4-40qt5z8dER@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-52268-4@http.gcc.gnu.org/bugzilla/>
References: <bug-52268-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: 2014-06/txt/msg02464.txt.bz2
Content-length: 178

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

--- Comment #11 from mrs at gcc dot gnu.org <mrs at gcc dot gnu.org> ---
Fixed title to reflect that this is for native tls.


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

end of thread, other threads:[~2014-07-10 21:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-30 18:16 [Bug c++/61661] New: [C++11][4.9/4.10 Regression] Bogus error: ‘const Outer::Foo{&Outer::Bar}’ is not a constant expression brooks at gcc dot gnu.org
2014-07-07  8:47 ` [Bug c++/61661] " paolo.carlini at oracle dot com
2014-07-07 11:10 ` rguenth at gcc dot gnu.org
2014-07-10  9:38 ` paolo.carlini at oracle dot com
2014-07-10 20:56 ` [Bug c++/61661] [4.9/4.10 " jason at gcc dot gnu.org
2014-07-10 21:49 ` jason at gcc dot gnu.org
2014-07-10 21:54 ` jason at gcc dot gnu.org
2014-07-10 21:56 ` jason at gcc dot gnu.org

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