From 35d31aeefe6bbb840bead95b46c1e2840de3b19b Mon Sep 17 00:00:00 2001 From: Nick Rolfe Date: Fri, 31 Aug 2018 13:15:53 +0100 Subject: [PATCH] C++: change note for designated intializer fixes --- change-notes/1.18/analysis-cpp.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/change-notes/1.18/analysis-cpp.md b/change-notes/1.18/analysis-cpp.md index 054e1ca8370..0496573e427 100644 --- a/change-notes/1.18/analysis-cpp.md +++ b/change-notes/1.18/analysis-cpp.md @@ -33,4 +33,6 @@ ## Changes to QL libraries -* *Series of bullet points* +* Fixes for aggregate initializers using designators: +** `ClassAggregateLiteral.getFieldExpr()` previously assumed initializer expressions appeared in the same order as the declaration order of the fields, causing it to associate the expressions with the wrong fields when using designated initializers. This has been fixed. +** `ArrayAggregateLiteral.getElementExpr()` previously assumed initializer expressions appeared in the same order as the corresponding array elements, causing it to associate the expressions with the wrong array elements when using designated initializers. This has been fixed.