This is an archive of the discontinued LLVM Phabricator instance.

[test-suite] Fixed compiler error when compiling hexxagonboard.cpp using GCC11
AcceptedPublic

Authored by adata111 on Dec 8 2021, 8:44 AM.

Details

Reviewers
MatzeB
Summary

The code for hexxagonboard.cpp used an ambiguous variable called "empty". This variable is already predefined by GCC 11.1.0 and hence the file doesn't get compiled using GCC11. The patch fixes this error by changing the variable name to "empty_var". The code now compiles successfully using both GCC 11.1.0 and the old version GCC 9.3.0

Co-author: @Shrill

Diff Detail

Repository
rT test-suite

Event Timeline

adata111 requested review of this revision.Dec 8 2021, 8:44 AM
adata111 created this revision.
adata111 created this object with edit policy "Custom Policy".
MatzeB accepted this revision.Dec 8 2021, 8:52 AM

LGTM

This revision is now accepted and ready to land.Dec 8 2021, 8:52 AM