Skip to content

#1032 test-parallel-ug.cc fails to compile with clang

Metadata

Property Value
Reported by Elias Pipping (elias.pipping@fu-berlin.de)
Reported at Jan 27, 2012 11:46
Type Bug Report
Version Git (pre2.4) [autotools]
Operating System Unspecified / All
Last edited by Oliver Sander (oliver.sander@tu-dresden.de)
Last edited at Jan 27, 2012 13:59
Closed by Oliver Sander (oliver.sander@tu-dresden.de)
Closed at Jan 27, 2012 13:59
Closed in version Unknown
Resolution Fixed
Comment So cleaning up code for no good reason sometimes seems to have a reason retroactively after all. :-)

Description

The offending lines are these:

<<SNIP template class EdgeCommunication { public: template static void test(const GridView &gridView) { const int dim = GridView::dimension; <<SNAP

The problem is with the duplicate declaration of dim (once as local variable and once as a template parameter. Removing the local variable makes the test compile and pass for me. I did not check if that's reasonable, though.