1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// { dg-do assemble } // Origin: Alfred Minarik <a8601248@unet.univie.ac.at> template <typename T> struct allocator { typedef int size_type; }; template <typename T> struct string { typedef typename allocator<T>::size_type size_type; static size_type size; size_type max_size() const { return size; } }; template struct string <char>;