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: unassig...@gcc.gnu.org
        ReportedBy: justda...@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 via email to