https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91431
Bug ID: 91431 Summary: Using class template for containers and iterators rather than defining template only for iterators caused a trouble Product: gcc Version: 7.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: p.hyundeok76 at gmail dot com Target Milestone: --- Created attachment 46705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46705&action=edit File processed through `gcc -v -save-temps [MYFILE]` Version: g++ (GCC) 7.4.0 System type: Cygwin on Windows 10 Home 64 bit 1903 uname -r shows: 3.0.7(0.338/5/3) Command used to compile the source code: g++ bug.cpp -o bug The compiler output: bug.cpp: In instantiating of 'class Blob<int>': bug.cpp:23.19: required here bug.cpp:11.4: Internal compiler error: in tsubst, at cp/pt.c:13675 > Blob(Iter b, Iter e) { ^~~~ Please submit a full bug report, which preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/> for instructions. The attached is a file processed through a command: gcc -v -save-temps [MYFILE]