Created attachment 1538599 [details] preprocessed code Description of problem: code of... nColCount = 1; ... nColCount = std::max<sal_Int32>(aIter.toInt32(), 1); nColCount = std::min<sal_Int32>(nColCount, MAXCOLCOUNT); results as if std::max line was elided, nColCount ends as 1 regardless of result of aIter.toInt32() Version-Release number of selected component (if applicable): gcc-9.0.1-0.4.fc30 How reproducible: 100% Steps to Reproduce: 1. g++ -std=gnu++2a -fPIC -c -O2 ~/xmlcoli.ii Actual results: linking that into LibreOffice gives failure as described in bug #1678319 Additional info: 2. g++ -std=gnu++2a -fPIC -c -O1 ~/xmlcoli.ii is ok, and rewriting as nColCount = aIter.toInt32(); if (nColCount < 1) nColCount = 1; else if (nColCount > MAXCOLCOUNT) nColCount = MAXCOLCOUNT; works fine
Please try gcc-9.0.1-0.8.fc30.
works great, thanks