[Dune] [#998] clang rejects specialisation with non-constant expression (Attachment added)
Dune
flyspray at dune-project.org
Tue Dec 20 15:05:40 CET 2011
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Elias Pipping (pipping)
Attached to Project - Dune
Summary - clang rejects specialisation with non-constant expression
Task Type - Bug Report
Category - Grid
Status - Unconfirmed
Assigned To -
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - dune/grid/alugrid/common/geostorage.hh defines
static const int aluTriangle = ALU2DSPACE triangle;
static const int aluQuad = ALU2DSPACE quadrilateral;
static const int aluTetra = ALU3DSPACE tetra;
static const int aluHexa = ALU3DSPACE hexa;
and then specialises CreateGeometries w.r.t. that.
Clang is not amused:
error: non-type template
argument depends on a template parameter of the partial specialization
I'm attaching a patch that makes the code compile with both g++ (tested with 4.4) and clang: The definitions are inlined (that's not an interface change because aluTriangle etc. were private).
One or more files have been attached.
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=998
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list