This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
The above compiles just fine for me. Are you using current mainline or by chance an old snapshot?=== THIS CODE FAILS TO COMPILE === template <typename T> class foo { public: foo() =default; // <<--- this works fine. ~foo(); };
template <typename T> foo<T>::~foo() =default; <<--- ERROR: This doesn't get built by the compiler. // foo<T>::~foo() {}; <<-- replacing with this line fixes the error.
int main() {
foo<int> fi;
return 0;
}
===================
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |