1// Copyright (C) 2005 Free Software Foundation, Inc.
2// Contributed by Nathan Sidwell 1 June 2005 <nathan@codesourcery.com>
3
4// PR 20350: ICE on member specialization with later initialization
5// Origin: Carlo Wood carlo@gcc.gnu.org
6
7template <int i> struct Mutex
8{
9  static int mutex;
10};
11
12template <int i>
13int Mutex<i>::mutex = {1};
14
15template <> int Mutex<0>::mutex;
16template <> int Mutex<0>::mutex = 0;
17
18void g()
19{
20  Mutex<0>::mutex = 0;
21}
22
23