public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59995] New: constexpr in non-static member function causes segmentation fault
@ 2014-01-30 19:03 pipping at exherbo dot org
  2014-05-11 14:32 ` [Bug c++/59995] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: pipping at exherbo dot org @ 2014-01-30 19:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59995
           Summary: constexpr in non-static member function causes
                    segmentation fault
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pipping at exherbo dot org

This code

<< SNIP
class A {
  int constexpr twice(int x) {
    return 2 * x;
  }
  int const a = twice(1);
};
<< SNAP

Causes a segmentation fault for me (with -std=c++0x):

<< SNIP
gcc-bug.cc:5:24: internal compiler error: Segmentation fault
   int const a = twice(1);
                        ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
<< SNAP


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

* [Bug c++/59995] constexpr in non-static member function causes segmentation fault
  2014-01-30 19:03 [Bug c++/59995] New: constexpr in non-static member function causes segmentation fault pipping at exherbo dot org
@ 2014-05-11 14:32 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-05-11 14:32 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> ---
This is fixed for 4.9.0.


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

end of thread, other threads:[~2014-05-11 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-30 19:03 [Bug c++/59995] New: constexpr in non-static member function causes segmentation fault pipping at exherbo dot org
2014-05-11 14:32 ` [Bug c++/59995] " 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).