public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/55537] New: constexpr usage crashes the compiler @ 2012-11-29 21:17 akrzemi1 at gmail dot com 2012-11-29 21:19 ` [Bug c++/55537] " akrzemi1 at gmail dot com 2012-11-29 21:28 ` paolo.carlini at oracle dot com 0 siblings, 2 replies; 3+ messages in thread From: akrzemi1 at gmail dot com @ 2012-11-29 21:17 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55537 Bug #: 55537 Summary: constexpr usage crashes the compiler Classification: Unclassified Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: akrzemi1@gmail.com Compilation of the following code causes the compiler to crash: //// BEGIN constexpr int j = 0; constexpr int const& get() { return (0, *&j); } constexpr int i = get(); int main() { } //// END I get error message: "internal compiler error: in adjust_temp_type, at cp/semantics.c:6400" ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/55537] constexpr usage crashes the compiler 2012-11-29 21:17 [Bug c++/55537] New: constexpr usage crashes the compiler akrzemi1 at gmail dot com @ 2012-11-29 21:19 ` akrzemi1 at gmail dot com 2012-11-29 21:28 ` paolo.carlini at oracle dot com 1 sibling, 0 replies; 3+ messages in thread From: akrzemi1 at gmail dot com @ 2012-11-29 21:19 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55537 --- Comment #1 from Andrzej Krzemienski <akrzemi1 at gmail dot com> 2012-11-29 21:19:10 UTC --- Even a slightly simpler example crashes: //// BEGIN constexpr int j = 0; constexpr int const& get() { return (0, j); } constexpr int i = get(); int main() { } //// END ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/55537] constexpr usage crashes the compiler 2012-11-29 21:17 [Bug c++/55537] New: constexpr usage crashes the compiler akrzemi1 at gmail dot com 2012-11-29 21:19 ` [Bug c++/55537] " akrzemi1 at gmail dot com @ 2012-11-29 21:28 ` paolo.carlini at oracle dot com 1 sibling, 0 replies; 3+ messages in thread From: paolo.carlini at oracle dot com @ 2012-11-29 21:28 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55537 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-11-29 21:28:13 UTC --- Already fixed for 4.7.3. *** This bug has been marked as a duplicate of bug 54777 *** ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-29 21:28 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2012-11-29 21:17 [Bug c++/55537] New: constexpr usage crashes the compiler akrzemi1 at gmail dot com 2012-11-29 21:19 ` [Bug c++/55537] " akrzemi1 at gmail dot com 2012-11-29 21:28 ` 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).