[Bug c++/38103] Warning about correctly escaped comment

2008-11-13 Thread jhs at gnome dot org
--- Comment #3 from jhs at gnome dot org 2008-11-13 09:18 --- sorry, for my last comment - should have read your comment twice... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38103

[Bug c++/38103] Warning about correctly escaped comment

2008-11-13 Thread jhs at gnome dot org
--- Comment #2 from jhs at gnome dot org 2008-11-13 09:17 --- So how would I add the string "/*" to a comment then? Obviously gcc sees the \ as escape character because otherwise it would end up in a syntax error. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38103

[Bug c++/38103] Warning about correctly escaped comment

2008-11-13 Thread schwab at suse dot de
--- Comment #1 from schwab at suse dot de 2008-11-13 09:05 --- The warning is correct: there are exactly two occurences of /* inside the comment. The backslash has absolutely no meaning at this place. If you want to silence the warning put anything but a / between / and *. -- schwa