[Bug c++/66153] Internal compiler error in nested template function

2015-12-15 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/66153] Internal compiler error in nested template function

2017-05-07 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #6 from Peter Boyle --- Just an update: Still fails in G++ 7.1.0 and in 8.0.0 (head) on Wandbox. Still passes in Clang 4.0.0 and 5.0.0(head).

[Bug c++/66153] Internal compiler error in nested template function

2017-05-07 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #7 from Peter Boyle --- Signature of fail in 8.0.0 (head) is: ^~~~ prog.cc: In substitution of 'template Container(arg.data[0]))> function(const Container&) [with int N = 1; obj = ]': prog.cc:43:101: recur

[Bug c++/66153] Internal compiler error in nested template function

2021-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 Andrew Pinski changed: What|Removed |Added Keywords||rejects-valid Severity|major

[Bug c++/66153] Internal compiler error in nested template function

2021-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #8 from Andrew Pinski --- Reduced further: #include template struct TypeMapper { static const int NestLevel = T::NestLevel; }; template<> struct TypeMapper { static const int NestLevel = 0; }; template struct Container { obj data;

[Bug c++/66153] Internal compiler error in nested template function

2021-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #9 from Andrew Pinski --- Here is the full on reduced testcase (the previous one was wrong): template struct Container { obj data[1]; }; template struct Recursive {}; template obj function(const obj &arg) { return obj{}; } templat

[Bug c++/66153] Internal compiler error in nested template function

2021-12-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #10 from Andrew Pinski --- A little more reduced: template struct c { obj data; }; struct r {}; template obj g(const obj &arg); template auto g(const c & arg) -> c(arg.data))> { return c(arg.data))>{}; } int main() { c array

[Bug c++/66153] Internal compiler error in nested template function

2015-05-15 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #1 from Peter Boyle --- Created attachment 35547 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35547&action=edit unprocessed source code.

[Bug c++/66153] Internal compiler error in nested template function

2015-05-15 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #2 from Peter Boyle --- p.s. in case anyone is wondering this recursive construct is a simplification of a construct I'm using in an expression template framework, so this is not simply a convoluted test case. Rather, I distilled th

[Bug c++/66153] Internal compiler error in nested template function

2015-05-23 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 --- Comment #3 from Peter Boyle --- http://stackoverflow.com/questions/30411079/counting-template-recursion-nest-depth Appears to affect all versions of g++ with various errors. Used: http://melpon.org/wandbox/permlink/eK2AVfZXXss0ZDu6 All ver

[Bug c++/66153] Internal compiler error in nested template function

2015-05-23 Thread paboyle at ph dot ed.ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153 Peter Boyle changed: What|Removed |Added Version|5.1.0 |6.0 --- Comment #4 from Peter Boyle --- A