rmaprath added inline comments.

================
Comment at: test/std/strings/basic.string/string.access/at.pass.cpp:41
+    const S& cs = s;
+    if (pos < cs.size())
+    {
----------------
For the cases where an exception //should've been// thrown, are we not entering 
the **undefined** domain at this point?

What if instead, we define two versions of the `test()` function? one 
containing the current code as-is, and the other only handles the cases where 
exceptions are not expected, and we modify the `main()` function below so that 
the correct `test()` case is invoked depending on the presence  / absence of 
exceptions? It's a bit more cumbersome than the current setup, but I'm not 
totally happy about treading into the undefined domain (if my understanding 
above is correct). 


https://reviews.llvm.org/D26136



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to