| 1 |
// Copyright (C) 2005 Free Software Foundation, Inc. |
| 2 |
// Contributed by Nathan Sidwell 8 Mar 2005 <[email protected]> |
| 3 |
|
| 4 |
// PR 20186: ICE |
| 5 |
// Origin: Jan Dvorak <[email protected]> |
| 6 |
|
| 7 |
template<typename T> void foo(T &t) |
| 8 |
{ |
| 9 |
int i = static_cast<int>(t); |
| 10 |
} |