public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54511] New: internal compiler error: in make_decl_rtl, at varasm.c:1147
@ 2012-09-06 22:57 justdanpo at gmail dot com
  2012-09-07  5:53 ` [Bug c++/54511] " daniel.kruegler at googlemail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: justdanpo at gmail dot com @ 2012-09-06 22:57 UTC (permalink / raw)
  To: gcc-bugs

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)


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

end of thread, other threads:[~2012-09-13 15:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-06 22:57 [Bug c++/54511] New: internal compiler error: in make_decl_rtl, at varasm.c:1147 justdanpo at gmail dot com
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

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