jeromerobert / hmat-oss

A hierarchical matrix C/C++ library
GNU General Public License v2.0
22 stars 11 forks source link

Operator precedence and initialization error raised when compiled with g++-12 #84

Closed pgrt closed 2 years ago

pgrt commented 2 years ago

Hello,

I am the Debian maintainer for hmat-oss. It appeared that hmat-oss fails to build with g++-12, because of two errors that were raised (see complete log at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012945#5):

I propose the attached patch, that solves the issues. Could you please review to tell me if the first fix is correct? I tried to understand the meaning of the piece of code from the context.

Best regards, Pierre

initialization_and_parentheses_issues.txt

dbarbier commented 2 years ago

Hi @pgrt these build failures had already been fixed in master, see commits eedeebd and 899d4e0.

pgrt commented 2 years ago

Hi @dbarbier Thanks for your comment and sorry for the noise, I was looking at the last tagged version and thus missed these commits.

Cheers, Pierre