Index: src/GenPoly/Box.cpp
===================================================================
--- src/GenPoly/Box.cpp	(revision 58eb9250e6207108d230dd7d6311b0c3a9103779)
+++ src/GenPoly/Box.cpp	(revision 454aab2d00e92a088b70cd656bc8f20cbc76b2a6)
@@ -95,16 +95,18 @@
 		ast::TypeInstType inst( sizedParam );
 		std::string paramName = Mangle::mangleType( &inst );
-		params.emplace_back( new ast::ObjectDecl(
+		auto sizeofParam = new ast::ObjectDecl(
 			sizedParam->location,
 			sizeofName( paramName ),
 			getLayoutCType( transUnit )
-		) );
-		auto alignParam = new ast::ObjectDecl(
+		);
+		sizeofParam->attributes.push_back( new ast::Attribute( "unused" ) );
+		params.emplace_back( sizeofParam );
+		auto alignofParam = new ast::ObjectDecl(
 			sizedParam->location,
 			alignofName( paramName ),
 			getLayoutCType( transUnit )
 		);
-		alignParam->attributes.push_back( new ast::Attribute( "unused" ) );
-		params.emplace_back( alignParam );
+		alignofParam->attributes.push_back( new ast::Attribute( "unused" ) );
+		params.emplace_back( alignofParam );
 	}
 }
