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

            Bug ID: 60056
           Summary: [C++11] ICE in var_defined_without_dynamic_init, at
                    cp/decl2.c:2876 with TLS static
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
            Blocks: 59994

template<typename T>
class Foo {
public:
    Foo() {
        ++c;
    }
private:
    thread_local static int c;
};

template<typename T> thread_local int Foo<T>::c(0);

int main(){
    Foo<int> o;
}

Maybe related to PR58671.

Reply via email to