This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/13121] Inserting struct with valarray in map fails


------- Additional Comments From bangerth at dealii dot org  2003-11-19 15:24 -------
The reason why the standard says this is undefined behavior is that
the creators of valarray wanted to have maximum speed for this class.

A check for the length and possibly throwing an exception might sacrifice
this goal, although it would of course be much cheaper than the actual
memory allocation this "feature" is to prevent. I leave this up to
the libstdc++ maintainers -- maybe their new debug mode lib has this
fixed already.

W.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]