[Bug libstdc++/23632] std::vector<bool> in combination with debug mode fails to compile code

fischerk at inf dot ethz dot ch gcc-bugzilla@gcc.gnu.org
Tue Aug 30 14:38:00 GMT 2005


------- Additional Comments From fischerk at inf dot ethz dot ch  2005-08-30 14:37 -------
Sorry, my mistake, the code is sent was not the right one. (I tested around and did not realize that I 
sent the wrong one, sorry.) Here is the code that causes the problem; and it only happens when I 
compile using the debug mode:

// BEGIN
#include <vector>

int main(int,char **)
{
  std::vector<bool> v(100);
  std::vector<bool>::const_iterator fu = v.begin(); // no const in front of the line
  if (fu[4])
    ;
}
// END

Tell me if you again need the .ii and .s-files.

Sorry for the confusion.
Kaspar

-- 


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



More information about the Gcc-bugs mailing list