The program

#include <iostream>
#include <locale>

int main() {
  std::cout.imbue(std::locale("fr_CA"));
  std::cout << 1;
}

crashes on a 32-bit laptop as well as on a 64-bit workstation,
for all compiler versions 3.4.3 - 4.0.2 (didn't check others)
with a segmentation fault.

And I believe it shouldn't crash (only perhaps throwing an
exception).


-- 
           Summary: defective locale named "fr_CA"
           Product: gcc
           Version: 4.0.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: o dot kullmann at swansea dot ac dot uk


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26263

Reply via email to