Fix segfault on double typedef for enum with -fdump-ada-spec
Eric Botcazou
ebotcazou@adacore.com
Sun Nov 13 17:38:00 GMT 2016
This happens with the C++ compiler only.
Tested on x86_64-suse-linux, applied on the mainline.
2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
c-family/
* c-ada-spec.c (print_ada_declaration): For typedef declarations, look
for nested types only if the type is a record or union and dump SLOC.
2016-11-13 Eric Botcazou <ebotcazou@adacore.com>
* c-c++-common/dump-ada-spec-6.c: New test.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dump-ada-spec-6.c
Type: text/x-csrc
Size: 171 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161113/08d8a52e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-patch
Size: 780 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20161113/08d8a52e/attachment-0001.bin>
More information about the Gcc-patches
mailing list