Preprocessing this:
#line 12312312312435

produces:

# 2936042099 ".../foo.c"

C99 specifies that the argument to #line shall be > 0 and < 2^31-1, and even if
it didn't, truncation like this should at least be warned about.

-Chris


-- 
           Summary: #line range not verified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sabre at nondot dot org


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

Reply via email to