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
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
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;
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153
Andrew Pinski changed:
What|Removed |Added
Keywords||rejects-valid
Severity|major
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
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).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66153
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|
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
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
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
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.
11 matches
Mail list logo