public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
@ 2010-10-21 12:56 zsojka at seznam dot cz
  2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-21 12:56 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46117

           Summary: [4.6 Regression] ICE: SIGSEGV in
                    add_function_candidate (call.c:1630) on invalid
                    typename usage
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22106
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22106
reduced testcase

Compiler output:
$ gcc pr46117.C 
pr46117.C:3:15: error: expected nested-name-specifier before 'int'
pr46117.C:3:15: error: two or more data types in declaration of 'parameter'
pr46117.C:8:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


valgrind output:
testcase.C:3:13: error: expected nested-name-specifier before 'int'
testcase.C:3:13: error: two or more data types in declaration of 'parameter'
==24080== Invalid read of size 2
==24080==    at 0x4A8823: add_function_candidate (call.c:1630)
==24080==    by 0x4A58B3: add_candidates (call.c:4254)
==24080==    by 0x4AB8A3: build_new_method_call (call.c:6528)
==24080==    by 0x5BBB24: locate_fn_flags (method.c:826)
==24080==    by 0x5BEEB5: synthesized_method_walk (method.c:1183)
==24080==    by 0x5BF839: implicitly_declare_fn (method.c:1433)
==24080==    by 0x5C0ACA: lazily_declare_fn (method.c:1634)
==24080==    by 0x5C5354: lookup_fnfields_1 (search.c:1360)
==24080==    by 0x5C8653: lookup_field_r (search.c:1032)
==24080==    by 0x5C5918: dfs_walk_all (search.c:1542)
==24080==    by 0x5C5A97: lookup_member (search.c:1206)
==24080==    by 0x5C5CCA: lookup_fnfields (search.c:1288)
==24080==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24080== 
testcase.C:8:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Full backtrace is quite long, so I am posting just this reduced one

Tested revisions:
r165768 - crash
r163636 - crash
r161659 - OK


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-10-21 21:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
2010-10-21 14:01 ` paolo.carlini at oracle dot com
2010-10-21 16:58 ` paolo.carlini at oracle dot com
2010-10-21 21:52 ` paolo at gcc dot gnu.org
2010-10-21 21:53 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).