Boost C++ Libraries: Ticket #3679: Comeau throws error compiling named_param_example.cpp https://svn.boost.org/trac10/ticket/3679 <p> Compiling Boost.Test examples using Comeau C/C++, I'm getting compilation error for named_param_example.cpp: </p> <pre class="wiki">como-linux.compile.c++ ../../../bin.v2/libs/test/example/named_param_example.test/como-linux/debug/link-static/named_param_example.o Comeau C/C++ 4.3.10.1 (May 7 2008 12:23:21) for LINUX_INTEL_ELF_Beta Copyright 1988-2008 Comeau Computing. All rights reserved. MODE:non-strict warnings C++ noC++0x_extensions "named_param_example.cpp", line 94: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" foo(( name = "foo", index = 0, value = 2.5 )); ^ "named_param_example.cpp", line 95: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" foo(( value = 'a', index = 1, name = "foo" )); ^ "named_param_example.cpp", line 96: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" foo(( name = "foo", value = "abc", index = 1 )); ^ "named_param_example.cpp", line 99: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" foo(( name = "foo", value = "abc" )); ^ "named_param_example.cpp", line 105: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" boo(( name = "boo", value = "abc" )); ^ "named_param_example.cpp", line 106: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" boo(( name = "boo", index = 1, value = "abc" )); ^ "named_param_example.cpp", line 108: error: a reference of type "const char *&amp;" (not const-qualified) cannot be initialized with a value of type "char [4]" doo(( value = 1.56, name = "ytr" )); ^ 7 errors detected in the compilation of "named_param_example.cpp". como -tused -c --long_long -DBOOST_ALL_NO_LIB=1 -D_GNU_SOURCE=1 --no_inlining -O0 -g --exceptions -I"../../.." -o "../../../bin.v2/libs/test/example/named_param_example.test/como-linux/debug/link-static/named_param_example.o" "named_param_example.cpp" </pre><p> The Boost.Test library compiles and links statically well. The tests of Boost.Test library build fine as well, but not all tests pass (I'm going to report details about it soon). So, Boost.Test works well with Comeau C/C++ frontend, except the example of named parameters. </p> <p> Environment: </p> <ul><li>OS: Linux 32-bit (Ubuntu 9.04) </li><li>GCC 4.3.3 </li><li>Comeau C/C++ 4.3.10.1 </li></ul> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3679 Trac 1.4.3 Gennadiy Rozental Sat, 28 Nov 2009 09:39:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3679#comment:1 https://svn.boost.org/trac10/ticket/3679#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">wontfix</span> </li> </ul> <p> I do not have access to this compiler. Plus it's unclear to me what it's complaining about. Finally this is just an example, nt even Boost.Test's own test. </p> <p> If you have patch which fixes the issue please resubmit. </p> Ticket