https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #14 from Gereon Kremer ---
I upgraded to 5.3 and sure enough, the bug still fires:
$ g++ --version
g++ (GCC) 5.3.0
Test_GCC.cpp: In substitution of ‘template void f(const A*) [with T
= ]’:
Test_GCC.cpp:25:7: required from here
Tes
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #12 from Gereon Kremer ---
And once again.
I just upgraded to gcc 5.1.0
Sure enough, it's not fixed...
Test_GCC.cpp: In substitution of ‘template void f(const A*) [with T
= ]’:
Test_GCC.cpp:25:7: required from here
Test_GCC.cpp:25
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #10 from Gereon Kremer ---
Any news?
The problem persists for the following versions:
- 4.8.3, error at line 17225
- 4.9.1, error at line 18149
- 4.9.2, error at line 18149
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #6 from Gereon Kremer ---
Any news here?
The problem persists with version g++ (GCC) 4.9.1 20140903 (prerelease).
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #4 from Gereon Kremer ---
Created attachment 31838
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31838&action=edit
Reduced example
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #3 from Gereon Kremer ---
(In reply to Marek Polacek from comment #2)
> I'd say a dup of PR59115.
I checked the following code from PR59115 that should also trigger this bug:
template void foo(T, U) {}
void bar()
{
foo(0, 0);
}
Th
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gereon.kremer at cs dot rwth-aachen.de
Created attachment 31798
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31798&action=edit
Source code
Im using gcc version 4.8.2 2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59759
--- Comment #1 from Gereon Kremer ---
Created attachment 31800
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31800&action=edit
Preprocessed file