public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "lbl2007 at gmx dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53213] New: Internal compiler error in math.h Date: Thu, 03 May 2012 13:48:00 -0000 [thread overview] Message-ID: <bug-53213-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53213 Bug #: 53213 Summary: Internal compiler error in math.h Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: lbl2007@gmx.net Using C math functions in C++ triggers an ICE. See below for a simple example. The problem actually occured when using math.h, the program below is a stripped-down version of the preprocessed source. gcc version 4.7.0 (GCC) Target: sparc-sun-solaris2.10 Configured with: ../gcc-4.7.0/configure --prefix=/h/local --with-local-prefix=/h/local --with-gmp=/h/local --with-gnu-as --with-gnu-ld --with-mpfr=/h/local --with-mpc=/h/local --with-local-prefix=/h/local --enable-threads=posix --enable-languages=c,c++ --disable-nls Compiler output: $ gcc -c bug.c bug_p.c: In function 'void f()': bug_p.c:11:11: internal compiler error: Bus Error Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. -----bug.c------------------------------------------------------- extern "C" { extern double log (double); extern float __logf(float); extern "C++" { float log(float __X) { return __logf(__X); } } } void f() { log(2.0); }
next reply other threads:[~2012-05-03 13:48 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-05-03 13:48 lbl2007 at gmx dot net [this message] 2012-05-03 14:19 ` [Bug c++/53213] " paolo.carlini at oracle dot com 2012-05-03 15:51 ` lbl2007 at gmx dot net 2012-05-04 9:00 ` lbl2007 at gmx dot net
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-53213-4@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: linkBe 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).