Skip to content

fatal error: bracket nesting level exceeded maximum of 256 #1122

Closed
@HJJ666

Description

@HJJ666

Summary:

error occurred when compiling my own Stan file

Description:

--- Translating Stan model to C++ code ---
bin/stanc --o=examples/wt/wt.hpp examples/wt/wt.stan

--- Compiling, linking C++ code ---
clang++ -std=c++1y -Wno-unknown-warning-option -Wno-tautological-compare -Wno-sign-compare -D_REENTRANT -Wno-ignored-attributes -I stan/lib/stan_math/lib/tbb_2020.3/include -O3 -I src -I stan/src -I lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.3.9 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials -DBOOST_DISABLE_ASSERTS -c -include-pch stan/src/stan/model/model_header.hpp.gch -x c++ -o examples/wt/wt.o examples/wt/wt.hpp
examples/wt/wt.hpp:21115:84: fatal error: bracket nesting level exceeded maximum of 256
stan::math::add(
^
examples/wt/wt.hpp:21115:84: note: use -fbracket-depth=N to increase maximum nesting level
1 error generated.
make: *** [examples/wt/wt] Error 1

Current Version:

v2.30.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions