C++ preprocessor behaviour change in rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,
  one of my packages (tvtime) failed to build during the mass rebuild. Not a
big deal, I think there are several ways to fix it. The odd thing is that the
build failed due to a rather unexpected change in C++ preprocessor (g++ -E or
cpp).

Let's assume I have a test.cpp file containing this:

#define MYMACRO(a, b) ""a", "b""
MYMACRO(x,y)

Now `cpp test.cpp' (or `g++ -E test.cpp') on rawhide produces:

# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "test.cpp"


""a", "b""

However on F23 or with `cpp -std=gnu++98 test.cpp' (`g++ -std=gnu++98 -E
test.cpp') I got:

# 1 "test.cpp"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 1 "<command-line>" 2
# 1 "test.cpp"


""x ", "y ""

Is this something known/documented? Or should I file a bug? I found this
behaviour rather strange (but so are the macros in tvtime...).

Thanks and regards,
-- 
Tomáš Smetana
Platform Engineering, Red Hat
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux