[PR c++/84702] ICE with default tmpl arg of overload set
[official-gcc.git] / gcc / testsuite / g++.dg / pr62314.C
blobebe75ecd705d77a1e29129ea65946734d72f28fd
1 // { dg-options "-fdiagnostics-show-caret" }
3 template <typename T>
4 struct iterator_traits {};
6 struct file_iterator;
8 struct iterator_traits<file_iterator> { // { dg-error "explicit specialization must be preceded by .template" }
9 };
11 /* Verify that we emit a fixit hint for this case.  */
13 /* { dg-begin-multiline-output "" }
14  struct iterator_traits<file_iterator>
15  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
16  template <> 
17    { dg-end-multiline-output "" } */