/usr/src/ark/BUILD/ooo-build/build/oog680-m7/sw/source/ui/uno/swdet2.cxx: At global scope: /usr/src/ark/BUILD/ooo-build/build/oog680-m7/sw/source/ui/uno/swdet2.cxx:91: internal compiler error: canonical types differ for identical types const char [5] and const sal_Char [5] This is similar to bug 33886, may be just another test case for the same bug:
Created attachment 14461 [details] bzip2-ed preprocessed source
Difference from bug 33886: bug 33977 occurs even at -O0, 33866 needs -O2
Created attachment 14462 [details] Reduced test case typedef char sal_Char; const sal_Char sHTML[] = "HTML"; extern const char sHTML[];
Subject: Bug 33977 Author: dgregor Date: Tue Nov 6 14:39:41 2007 New Revision: 129929 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=129929 Log: 2007-11-06 Douglas Gregor <doug.gregor@gmail.com> PR c++/33977 PR c++/33886 * tree.c (c_build_qualified_type): Define bridge to cp_build_qualified_type. 2007-11-06 Douglas Gregor <doug.gregor@gmail.com> PR c++/33977 PR c++/33886 * c-common.c (c_build_qualified_type): Moved to c-typeck.c. (complete_array_type): Set canonical type appropriately. * c-typeck.c (c_build_qualified_type): Moved from c-common.c. The C and C++ front ends now have different versions of this function, because the C++ version needs to maintain canonical types here. 2007-11-06 Douglas Gregor <doug.gregor@gmail.com> PR c++/33977 PR c++/33886 * g++.dg/other/canon-array.C: New. Modified: trunk/gcc/ChangeLog trunk/gcc/c-common.c trunk/gcc/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/tree.c trunk/gcc/testsuite/ChangeLog
Fixed