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

             Bug #: 52819
           Summary: ICE: tree check: expected tree that contains 'decl
                    minimal' structure, have 'nop_expr' in decl_linkage,
                    at cp/tree.c:3136
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: gessos.p...@yahoo.gr


------- g++ -v -------
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=....../libexec/gcc/x86_64-w64-mingw32
/4.7.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ......./build/gcc/src/configure --target=x86_64-w64-mingw32 --
prefix=/c/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root
--with-sysroot=/c
/bb/vista64-mingw32/mingw-x86-x86_64/build/build/root
--enable-languages=all,obj
-c++ --enable-fully-dynamic-string --disable-multilib
Thread model: win32
gcc version 4.7.0 20111220 (experimental) (GCC)
----------------------

------- g++ -std=c++11 code.cpp -------
typedef void (*cfi)(void*);

void function(int *a) {}

template<cfi Func>
void get() { Func(0); }

int main()
{
    get<(cfi) function>();
    return 0;
}
----------------------------------------

Reply via email to