Specifically, NG has a Rose which has a LeftEng which has a depth, which can
throw an error on construction. If we put these in the try-catch we don't
have to worry so much in future.
target_t target_info = platform ? target_t(*platform)
: get_current_target();
- CompileContext cc(isStreaming, isVectored, target_info, g);
- NG ng(cc, elements, somPrecision);
-
try {
+ CompileContext cc(isStreaming, isVectored, target_info, g);
+ NG ng(cc, elements, somPrecision);
+
for (unsigned int i = 0; i < elements; i++) {
// Add this expression to the compiler
try {