fix Issue 6578 - Ignored const with struct with constructor