This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15528] segmentation fault with invalid code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 May 2004 04:42:31 -0000
- Subject: [Bug c++/15528] segmentation fault with invalid code
- References: <20040518224904.15528.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-19 04:42 -------
Here is what ICC 6.0 says:
test.cc
test.cc(3): error: recursive instantiation of default argument
A(const A<T>& = A<T>()){}
^
detected during instantiation of "A<T>::A(const A<T> &) [with T=int]" at line 7
compilation aborted for test.cc (code 2)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15528