This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Patch, ObjC++] fix PR43689


The two test are failing with errors like:
Excess errors: <built-in>:0:0: warning: 'MyConstantString' has a field 'MyConstantString::_contents' whose type uses the anonymous namespace
where _contents is a union equivalencing two pointer types.
The fix names the union.
Since this is not what the const-str-* tests are about it seems a better fix than expecting the warning.


OK for trunk?
Iain


gcc/testsuite/Changelog:


	PR ObjC++/43689
	* obj-c++.dg/const-str-5.mm: Name pointer equivalence union.
	* obj-c++.dg/const-str-6.mm: Ditto.

Attachment: 159377-PR43689-diff.txt
Description: Text document



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]