| Summary: | Internal compiler error after bad open curly on prototype | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 4 | Reporter: | lcuff | ||||
| Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | qe-baseos-tools-bugs | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 4.9 | ||||||
| Target Milestone: | rc | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-06-20 16:18:54 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
I forgot to say, the problem is that I have a bad prototype at the top of the file, which has an open curly parens on the right hand side instead of a semi-colon. So the whole file ends up inside an unintended function definition. Not a good thing, but still, the compiler should emit a nice error message, not barf. Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. Please See https://access.redhat.com/support/policy/updates/errata/ If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue. |
Created attachment 478699 [details] Pre-processor output for file that creates the bug Description of problem: The following error message is emitted by the compiler: default_research.c:459: internal compiler error: in make_decl_rtl, at varasm.c:799 Version-Release number of selected component (if applicable): gcc -v Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-11) How reproducible: Here is the compilation line: gcc -c -Wall -ggdb -MD -DVCM_BUILD_DETAILS=\""`hostname` at `date "+%c"`"\" -fPIC -Werror -rdynamic -ggdb -D_GNU_SOURCE -DPOSIX_C_SOURCE=200112L -DADEX_UID_RESEARCH -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/config -I/vcm/home/sandbox/ticket_228161/vcm/component/budget/include -I/vcm/home/sandbox/ticket_228161/vcm/component/iplookupd/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2 -I/vcm/home/apps/curl-7.19.6/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/libmemcached/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/memcached/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/libevent/include -I/vcm/home/sandbox/ticket_228161/vcm/component/predictive/src -I/vcm/home/sandbox/ticket_228161/vcm/apps/cunit/include -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/queryparser -I/usr/include/openssl -I/vcm/home/sandbox/ticket_228161/vcm/apps/lua/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/readline/include -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/include -I/vcm/home/sandbox/ticket_228161/vcm/component/budget/include -I/vcm/home/sandbox/ticket_228161/vcm/component/predictive/src -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/config -I/vcm/home/sandbox/ticket_228161/vcm/apps/libmemcached/include -I/vcm/home/sandbox/ticket_228161/vcm/component/iplookupd/include -I/vcm/home/sandbox/ticket_228161/vcm/component/libsimpled/include -I/vcm/home/sandbox/ticket_228161/vcm/component/calloutd/include -I/vcm/home/sandbox/ticket_228161/vcm/component/vcmclib/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/liblzf-2.0/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2 -I/vcm/home/sandbox/ticket_228161/vcm/apps/apr/include/apr-1 -I/vcm/home/sandbox/ticket_228161/vcm/apps/apr-util/include/apr-1 -I/vcm/home/sandbox/ticket_228161/vcm/apps/protobuf-c-0.12/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/protobuf-2.3.0/include -I/vcm/home/apps/curl-7.19.6/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/zookeeper/include/c-client-src -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2/libxml -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE -I/vcm/home/sandbox/ticket_228161/vcm/apps/apache_2.2.4/include -I/vcm/home/sandbox/ticket_228161/vcm/component/apache_modules/src/common -I/usr/include/oracle/11.1.0.7/client -I/vcm/home/sandbox/ticket_228161/vcm/apps/spread/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/json/utils/include default_research.c -o default_research.o Steps to Reproduce: 1. Compile 2. ??? 3. Profit Actual results: default_research.c:459: internal compiler error: in make_decl_rtl, at varasm.c:799 Expected results: Oh mighty god of C, your program is awesome and compiled perfectly. Additional info: $ cat /etc/redhat-release Red Hat Enterprise Linux WS release 4 (Nahant Update 8)