Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/decltype-nonstatic1.C

raw
1 // PR c++/100205
2 // { dg-do compile { target c++11 } }
3
4 struct coordinate_matrix {
5 using index_t = unsigned;
6 struct convert_to_matrix_coordinate {
7 index_t column_id;
8 };
9 index_t column_id;
10
11 // does not work
12 using value_type2 = decltype(convert_to_matrix_coordinate{column_id});
13
14 // does work
15 using value_type5 = decltype(column_id);
16 };