1// Copyright (C) 2005 Free Software Foundation, Inc.
2// Contributed by Nathan Sidwell 8 Mar 2005 <nathan@codesourcery.com>
3
4// PR 20186: ICE
5// Origin: Jan Dvorak <jan.dvorak@kraxnet.cz>
6
7template<typename T> void foo(T &t)
8{
9  int i = static_cast<int>(t);
10}
11