bugGNU nano - Bugs: bug #41683, compiling nano with -O0 leaves a C...


bug #41683: compiling nano with -O0 leaves a C comment on line 1 uncoloured

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Mon Feb 24 21:28:17 2014  
Severity: 2 - MinorStatus: Duplicate
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Fri Apr 17 19:13:32 2015, comment #2:

Considering this a duplicate of bug #41908, as it depends on the compiler under what conditions the effect appears.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Tue Feb 25 14:46:55 2014, comment #1:

This small lack of colour is solved by patch file #29172, attached to bug #26977.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Mon Feb 24 21:28:17 2014, original submission:

Put this in a file, say comments.c:
/* Comment */
/* Comment */
/* Comment */
/* Comment */
Export CFLAGS="-g -O0", configure and compile nano.
Open the file with src/nano and see how the first
line isn't coloured. Delete any of the four lines,
and see how now all lines are coloured.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri Apr 17 19:13:32 2015bensStatusNone=>Duplicate
    Tue Feb 25 14:46:55 2014bensAssigned toNone=>bens

    Back to the top

    Powered by Savane 3.1-cleanup1