[Bug libstdc++/115099] New: compilation error: format thread::id

2024-05-14 Thread faithandbrave at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include #include #include int main() { std::cout << __cpp_lib_formatters << std::endl; std::cout << std::format("{}", std::this_th

[Bug libstdc++/115063] New: compilation error: std::basic_stracktrace::max_size()

2024-05-13 Thread faithandbrave at gmail dot com via Gcc-bugs
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include #include int main() { std::stacktrace trace{}; std::cout << trace.max_size() << std::endl; } outputs: In file included f

[Bug libstdc++/97613] chrono::year_month_weekday cast to sys_days : return bad value if index() == 0

2020-10-28 Thread faithandbrave at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97613 --- Comment #1 from Akira Takahashi --- - #include + #include #include #include namespace chrono = std::chrono; using namespace std::chrono_literals; int main() { chrono::sys_days date1 = 2020y/3/chrono::Sunday[1];

[Bug libstdc++/97613] New: chrono::year_month_weekday cast to sys_days : return bad value if index() == 0

2020-10-28 Thread faithandbrave at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include #include namespace chrono = std::chrono; using namespace std::chrono_literals; int main() { // 1

[Bug libstdc++/91748] New: doesn't compile std::for_each_n for random access iterator range

2019-09-11 Thread faithandbrave at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include int main() { int ar[] = {1, 2, 3}; std::for_each_n(ar, 3, [](int) {}); } doesn't compile the code

[Bug c++/90455] New: braced-init and incomplete type instantiation

2019-05-14 Thread faithandbrave at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- Pattern A (OK) : #include struct B; struct A { std::unique_ptr p; }; int main() {} Pattern B (Compilation Error) : #include struct B; struct A { std::unique_ptr p

[Bug libstdc++/87227] New: doesn't work std::filesystem::directory_options::follow_directory_symlink

2018-09-05 Thread faithandbrave at gmail dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include #include #include namespace fs = std::filesystem; int main() { fs

[Bug libstdc++/87226] New: doesn't work std::filesystem::directory_options::follow_directory_symlink

2018-09-05 Thread faithandbrave at gmail dot com
Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- #include #include #include namespace fs = std::filesystem; int main() { fs

[Bug libstdc++/84159] New: filesystem::path::operator/= with has root directory path

2018-01-31 Thread faithandbrave at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- Standard says: N4660 30.10.8.4.3 path appends [fs.path.append] // On POSIX, path("foo") / ""; // yields "

[Bug libstdc++/83891] New: std::filesystem::path::is_absolute for Windows

2018-01-16 Thread faithandbrave at gmail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Target Milestone: --- Current is_absolute implementation is follow: inline bool path::is_absolute() const { #ifdef _GLIBCXX_FILESYSTEM_IS_WINDOWS return has_root_name(); #else return

[Bug c++/65790] compilation error : receive std::index_sequence

2015-07-09 Thread faithandbrave at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65790 --- Comment #5 from Akira Takahashi faithandbrave at gmail dot com --- Thanks Paolo!!

[Bug c++/65790] New: compilation error std::index_sequnece

2015-04-16 Thread faithandbrave at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Compilation error follow code: #include iostream #include utility void g(std::size_t a, std::size_t b, std::size_t c) { std::cout a , b , c std::endl; } //template class T, T... Seq //void f

[Bug libstdc++/62119] New: dangling reference : gslice_array's copy constructor

2014-08-13 Thread faithandbrave at gmail dot com
Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com follow code happens segmentation fault by dangling deference. #include iostream #include valarray #include numeric int main() { std::valarrayint v(15); std::iota(std::begin(v

[Bug libstdc++/62119] dangling reference : gslice_array's copy constructor

2014-08-13 Thread faithandbrave at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62119 --- Comment #1 from Akira Takahashi faithandbrave at gmail dot com --- expected output: 0 99 99 3 4 5 99 99 8 9 10 99 99 13 14

[Bug c++/59709] break program behavior with optimization

2014-01-07 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59709 Akira Takahashi faithandbrave at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c++/59709] New: break program behavior with optimization

2014-01-06 Thread faithandbrave at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Hi, I encountered difficult problem. If I use -O2 option, follow code behavior be break. (in GCC 4.8.2) #include iostream #include string #include boost/spirit/include/qi.hpp namespace qi = boost

[Bug c++/59709] break program behavior with optimization

2014-01-06 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59709 --- Comment #1 from Akira Takahashi faithandbrave at gmail dot com --- Boost version is 1.55.0.

[Bug libstdc++/58302] New: compilation error : std::negative_binomial_distribution::operator(e, p)

2013-09-02 Thread faithandbrave at gmail dot com
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com Follow code become compilation error: #include random int main() { typedef std::negative_binomial_distribution dist_type; std

[Bug libstdc++/58098] New: wrong return value of normal_distribution::min()

2013-08-07 Thread faithandbrave at gmail dot com
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: faithandbrave at gmail dot com In random(bits/random.h)'s std::normal_distribution, min() function's implementation is follow: /** * @brief Returns the greatest lower bound value of the distribution

[Bug libstdc++/55847] New: mistake bad_weak_ptr::what() message

2013-01-02 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55847 Bug #: 55847 Summary: mistake bad_weak_ptr::what() message Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal

[Bug libstdc++/53515] New: InputIterator version std::advance needs positive check

2012-05-29 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53515 Bug #: 53515 Summary: InputIterator version std::advance needs positive check Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED

[Bug libstdc++/53080] tuple interface to std::array doesn't check bounds

2012-04-23 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53080 --- Comment #5 from Akira Takahashi faithandbrave at gmail dot com 2012-04-23 12:32:13 UTC --- (In reply to comment #4) Done. Great thanks!

[Bug libstdc++/53080] New: std::array - std::get() and std::tuple_element is nothing bounds check

2012-04-22 Thread faithandbrave at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53080 Bug #: 53080 Summary: std::array - std::get() and std::tuple_element is nothing bounds check Classification: Unclassified Product: gcc Version: 4.7.0 Status: