Issue Details (XML | Word | Printable)

Key: STDCXX-1015
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Martin Sebor
Reporter: Martin Sebor
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
C++ Standard Library

[gcc 4.3.0] ICE compiling VA_LIST.cpp config test

Created: 07/Sep/08 12:06 AM   Updated: 06/May/09 03:55 PM
Return to search
Component/s: Configuration
Affects Version/s: 4.2.1
Fix Version/s: 4.2.2

Time Tracking:
Original Estimate: 1h
Original Estimate - 1h
Remaining Estimate: 1h
Remaining Estimate - 1h
Time Spent: Not Specified
Remaining Estimate - 1h

Environment: gcc 4.2.x, 4.3.x, 4.4.0, x86_64

Severity: Runtime Error


 Description  « Hide
Both gcc 4.3.0 and 4.3.1 choke on the VA_LIST.cpp config test. A misconfigured va_list can't be good for the library... We should probably hardcode the expected value when _RWSTD_NO_VA_LIST is #defined (although we might already be doing it since we do have some good gcc 4.3.0 builds...)

The ICE has been filed with gcc in bug 37404.

gcc -D_RWSTDDEBUG -pthread -I. -pedantic -nostdinc++ -g   -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long -Wcast-align  -c /amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp -o VA_LIST.o
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp: In function 'int main()':
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp:198: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp:202: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp: In static member function 'static const char* Type<T [N]>::type_name() [with T = __va_list_tag, int N = 1]':
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp:96:   instantiated from here
/amd/devco/sebor/stdcxx-4.2.x/etc/config/src/VA_LIST.cpp:85: internal compiler error: in build_special_member_call, at cp/call.c:5323
Please submit a full bug report,with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Martin Sebor added a comment - 06/May/09 03:55 PM
The ICE occurs with all releases of gcc starting with 4.2, all the way to 4.4, but only on platforms where va_arg is an array (e.g., x86_64 and POWER).