public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "justdanpo at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/54511] New: internal compiler error: in make_decl_rtl, at varasm.c:1147
Date: Thu, 06 Sep 2012 22:57:00 -0000	[thread overview]
Message-ID: <bug-54511-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 54511
           Summary: internal compiler error: in make_decl_rtl, at
                    varasm.c:1147
    Classification: Unclassified
           Product: gcc
           Version: 4.7.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: justdanpo@gmail.com


---hardwarecfg.cpp---
#include <stdint.h>

template <int i=0>
class SPI
{
public:
    SPI(uint32_t maxfreq)
    {
        union
        {
            int a;
            int b;
        };
        a=0;
    }
};

SPI<> spi(25000000);
---end-of-file---

Command line:
arm-none-eabi-g++.exe hardwarecfg.cpp -save-temps

Compiler output:
hardwarecfg.cpp: In constructor 'SPI<i>::SPI(uint32_t) [with int i = 0;
uint32_t = long unsigned int]':
hardwarecfg.cpp:14:3: internal compiler error: in make_decl_rtl, at
varasm.c:1147

Software versions:
GCC 4.7.1, YAGARTO GNU ARM toolchain
(http://sourceforge.net/projects/yagarto/files/YAGARTO%20for%20Windows/20120616/)
Windows XP SP3 (x86)


             reply	other threads:[~2012-09-06 22:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 22:57 justdanpo at gmail dot com [this message]
2012-09-07  5:53 ` [Bug c++/54511] " daniel.kruegler at googlemail dot com
2012-09-07  8:03 ` jakub at gcc dot gnu.org
2012-09-07  8:19 ` [Bug c++/54511] [4.6/4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-09-07  8:22 ` jakub at gcc dot gnu.org
2012-09-07  9:05 ` jakub at gcc dot gnu.org
2012-09-07 10:53 ` rguenth at gcc dot gnu.org
2012-09-13 15:13 ` jason at gcc dot gnu.org
2012-09-13 15:14 ` jason at gcc dot gnu.org
2012-09-13 15:15 ` jason at gcc dot gnu.org
2012-09-13 15:29 ` jason at gcc dot gnu.org

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-54511-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: link
Be 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).