This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21467] ICE for template function if missing required default argument
- 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: 9 May 2005 12:53:41 -0000
- Subject: [Bug c++/21467] ICE for template function if missing required default argument
- References: <20050509122905.21467.sylvain.joyeux@m4x.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-09 12:53 -------
Confirmed and not a regression.
Here is the backtrace:
#0 convert_default_arg (type=0xb7bf9804, arg=0x0, fn=0xb7c8c948, parmnum=2)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/call.c:4513
#1 0x0810a7c0 in build_function_call (function=0xb7c8c948, params=0x0)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/typeck.c:2618
#2 0x0805c8b9 in build_new_function_call (fn=0xb7c68e40, args=0xb7c68f30)
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/call.c:2763
#3 0x08131ea0 in finish_call_expr (fn=0xb7c68e40, args=0xb7c68f30, disallow_virtual=0 '\0',
koenig_p=1 '\001')
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/semantics.c:1846
#4 0x080ef725 in cp_parser_unary_expression (parser=0xb7c8b2d8, address_p=0 '\0', cast_p=0 '\0')
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:4158
#5 0x080f0192 in cp_parser_assignment_expression (parser=0xb7c8b2d8, cast_p=0 '\0')
at /home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:5413
#6 0x080f1939 in cp_parser_expression (parser=0xb7c8b2d8, cast_p=Variable "cast_p" is not
available.
)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |ice-on-invalid-code
Known to fail| |2.95.3 3.0.4 3.2.3 3.3.3
| |3.4.0 4.0.0
Last reconfirmed|0000-00-00 00:00:00 |2005-05-09 12:53:37
date| |
Summary|ICE for template function if|ICE for template function if
|missing required default |missing required default
|argument |argument
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21467